On Jan 23, 2013, at 4:18 PM, [email protected] wrote: > I have build the whole pub-key (in DER) from yours pubkey.bin by adding > public key header - as wrote [email protected] > > If I did not make error, it could work now - try it. > It is in attachment. > > openssl asn1parse -in pub-key.der -inform der -strparse 18 > > and you will see the same as by parsing yours pubkey.bin. > > To see whole public key structure: > openssl asn1parse -in pub-key.der -inform der > > --kapetr >
This worked. I translated the .der key into PEM format, which I was then able to load into my python script with M2Crypto.RSA.load_pub_key(). I could then use the resulting RSA_pub object to encrypt my data and send it to the device. So, my next question is, how did you add the public key header? What does this header look like? If I know that then I should be able to add it within my script and handle it all directly. Thanks Dwight Tovey Laserjet R&D Engineer [email protected] (208)396-4645 ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List [email protected] Automated List Manager [email protected]
