# Verifying SSL with http-access2 on Windows

**URL:** <https://www.ruby-forum.com/t/verifying-ssl-with-http-access2-on-windows/87796>\
**Category:** Ruby\
**Created:** [March 27, 2006, 5:29pm UTC](https://www.ruby-forum.com/t/verifying-ssl-with-http-access2-on-windows/87796 "2006-03-27T17:29:03Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![lstrecv](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/e68b1a/32.png) [@lstrecv](https://www.ruby-forum.com/u/lstrecv)\
**Post date:** [March 27, 2006, 5:29pm UTC](https://www.ruby-forum.com/t/verifying-ssl-with-http-access2-on-windows/87796/1 "2006-03-27T17:29:03Z")

</div>

Anyone know how to get http-access2 to verify the SSL Certificate on  
Windows?

I can get it to not verify, but I can’t seem to get it to use local  
certs to verify… I guess I need to install them somewhere and set  
some envariable to point to the dir, but I’m not sure which envar or  
what to install…

---

<div class="post-metadata">

**Author:** ![lstrecv](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/e68b1a/32.png) [@lstrecv](https://www.ruby-forum.com/u/lstrecv)\
**Post date:** [March 28, 2006, 5:23am UTC](https://www.ruby-forum.com/t/verifying-ssl-with-http-access2-on-windows/87796/2 "2006-03-28T05:23:57Z")

</div>

Could someone point in the right direction on this? Or, if my question  
is unintelligble for some reason, let me know why?

---

<div class="post-metadata">

**Author:** ![lstrecv](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/e68b1a/32.png) [@lstrecv](https://www.ruby-forum.com/u/lstrecv)\
**Post date:** [March 28, 2006, 5:49pm UTC](https://www.ruby-forum.com/t/verifying-ssl-with-http-access2-on-windows/87796/3 "2006-03-28T17:49:36Z")

</div>

Am I the only one whose ever tried to use http-access2 SSL on Windows?

Surely, someone, somewhere could give me a pointer in how to verify  
remote certs (Google didn’t help).

---

<div class="post-metadata">

**Author:** ![lstrecv](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/e68b1a/32.png) [@lstrecv](https://www.ruby-forum.com/u/lstrecv)\
**Post date:** [March 28, 2006, 8:59pm UTC](https://www.ruby-forum.com/t/verifying-ssl-with-http-access2-on-windows/87796/4 "2006-03-28T20:59:01Z")

</div>

Thanks - I guess I’m looking for a way to do this with “universal” root  
certs, similar to the way a browser works. - where you don’t need the  
specific cert/key of the other host, provided that it is signed by a  
recognized CA (such as VeriSign)

---

<div class="post-metadata">

**Author:** ![lstrecv](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/e68b1a/32.png) [@lstrecv](https://www.ruby-forum.com/u/lstrecv)\
**Post date:** [March 28, 2006, 8:41pm UTC](https://www.ruby-forum.com/t/verifying-ssl-with-http-access2-on-windows/87796/5 "2006-03-28T20:41:55Z")

</div>

Hi listrecv!

On Wed, 29 Mar 2006, removed\_email\_address@domain.invalid wrote:

> Am I the only one whose ever tried to use http-access2 SSL on Windows?
> 
> Surely, someone, somewhere could give me a pointer in how to verify  
> remote certs (Google didn’t help).

I can’t see why it would be different on Windows vs. Unix, but who  
knows? At any rate, this is what I do on my Unix box (no Windows here,  
sorry):

@ca\_file = “/path/to/remote/server’s/pub/key”  
@proxy = ENV[‘HTTP\_PROXY’] || ENV[‘http\_proxy’] || nil  
@client = HTTPClient.new(proxy)  
@client.ssl\_config.set\_trust\_ca(@ca\_file)

You might also find useful the example code at  
[http://dev.ctor.org/http-access2/browser/tags/RELEASE\_2\_0\_6/sample/ssl](http://dev.ctor.org/http-access2/browser/tags/RELEASE_2_0_6/sample/ssl)
