On Fri, Apr 16, 2010, digitalderik wrote: > > Hi there > I've copied and pasted an rsa private key that i need to use with openssl. > However when i run any commands that use the private key like the command: > $openssl rsautl -sign -in textfile -inkey privatekey.pem -out result.txt > i get: unable to load private key > I've checked the line length of the private key and it is 64 characters.Does > this mean that it's not a problem with the base64 encoding(The key is in PEM > format: ASN.1 + DER + base64). > I'm at my wits end and can't find anything that helps on google. > Any help would be great.Thankyou for your time > regards
What is the full error message? What do you get with: openssl rsa -in key.pem Does the file look like this: -----BEGIN RSA PRIVATE KEY----- <base64 encoded stuff> -----END RSA PRIVATE KEY----- Steve. -- Dr Stephen N. Henson. OpenSSL project core developer. Commercial tech support now available see: http://www.openssl.org ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager majord...@openssl.org