[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Re: [C.L.R] http-access2 and https. How to? (OpenSSL::X509::StoreError

NAKAMURA, Hiroshi

6/6/2007 3:13:00 PM

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

Sorry for the late response.

Peter Smith [gjfc] wrote:
> I dont have IE so I used opera to export the key.
> It looks like it gave me a binary file.

ruby -ropenssl -e 'print
OpenSSL::X509::Certificate.new(File.read("ca.bin")).to_pem' > ca.pem

set 'ca.pem' as a trust anchor. You'll know what is missing in your
base64 format when you see the file generated (initial and last lines).

FYI: in openssl, we use '.cer' for DER encoded binary format and '.pem'
for base64 + envelope marker line format. Using '.cer' filename for
base64 format is misleading.

Regards,
// NaHi

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Cygwin)

iQEVAwUBRmbOwh9L2jg5EEGlAQL3VQf8CJK47jHtNpdCOblxiEk6mlPTPAV5gpj9
l480su+PYXopNWoJEwdRGtd3rZoFzYMQHdY5lS7PfyREL5XwdghmDAS+CZ/7vXPl
/Ylc8jq8MGrNfG8LMXXf8QkmrlGYPJir5Ei4OmiWX9MinDBdi+Zc2mC6GQrSATxF
+Bfz5SUf5JucvpHhiAsmxT6tA08m30J+mNhgQYf4DgmiZL3BGPPt1eyWNyHZ6Pnz
IaSSQ97cr+ypIA0xSUCpLqpqjaoKrPkaMRz4ud35XoPaxtVAgZyu/3pJuyu+AqgC
4SnWoCZySIr6oiwb2rlkd4WmcjHJf/AHmrH77F4V2DSvbfCV0wGOvQ==
=TrA+
-----END PGP SIGNATURE-----