From: Magnus Bodin Date: 2005-03-18T01:48:15+09:00 Subject: saving a OpenSSL::X509::Certificate as PKCS#12? I want to create a X.509 certificate and save it as PKCS#12. All in pure Ruby. I've looked in the WEBrick and QuickCert sources, waded through sources of openssl, stunnel and now ruby-1.8.2, but it is a little bit hazy. My guess is that I shall create a PKCS12-object of some sort and initialize this with my already created X.509-cert, right? How do I save it in PKCS#12-format, readable from e.g. firefox? I've successfully created a cert and saved it as PEM with the OpenSSL::X509::Certificate#to_pem, and then *converted* it on the commandline with the openssl-tool. But I'd like to save it in the right format directly from ruby. Please advise or even better: Please point me to the fine manual, because I cannot find it. -- magnus