From: yermej Date: 2008-02-01T00:24:58+09:00 Subject: Re: Net::HTTP using SSL certificate On Jan 30, 9:41 pm, julianparry wrote: > C:/rubydev/olb/olb.rb:59:in `initialize': Neither PUB key nor PRIV > key:: nested > asn1 error (OpenSSL::PKey::RSAError) This message is telling you that the file you passed to OpenSSL::PKey.new isn't a key file. That is correct since the certificate is not a key. You'll need to pass it the private key file that was used to create the certificate you're using.