# How crub access Self-Signed Certificate website?

**URL:** <https://www.ruby-forum.com/t/how-crub-access-self-signed-certificate-website/168116>\
**Category:** Ruby\
**Created:** [May 16, 2009, 6:44am UTC](https://www.ruby-forum.com/t/how-crub-access-self-signed-certificate-website/168116 "2009-05-16T06:44:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![twtw](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/8e7dd6/32.png) [@twtw](https://www.ruby-forum.com/u/twtw)\
**Post date:** [May 16, 2009, 6:44am UTC](https://www.ruby-forum.com/t/how-crub-access-self-signed-certificate-website/168116/1 "2009-05-16T06:44:46Z")

</div>

My Site’s Certificate is Self-Signed.  
(followed [Generating an SSL Certificate with Apache+mod\_ssl](http://slacksite.com/apache/certificate.php) the instruction)

if I curl [https://mysite.com/](https://mysite.com/) will get the error response.  
according to [http://curl.haxx.se/docs/sslcerts.html](http://curl.haxx.se/docs/sslcerts.html)  
the followed commands are able to to access my website by curl

openssl s\_client -connect [mysite.com:443](http://mysite.com:443) |tee logfile  
curl --cacert logfile [https://mysite.com/](https://mysite.com/)

when I want to use Curb to access my site,  
I try to search the Curb manual, I don’t know after getting site’s CA  
certificate how Curb import it to perform like curl.

Thank you.
