user3516155 wrote:PEM stands for 'Privacy Enhanced Mail' and is not restricted to encoding any particular private key format. It's prime purpose is to Base64 encode binary data but it adds a header and trailer that may help decide on the content. One need to know what key format the PEM is wrapping. Even knowing it wraps a DER encoding is not necessarily enough. Knowing how the key was generated helps with this. Did you use OpenSSL and if so what command(s) were used?
We are using cyassl on the c++ side and JSSE/proprietary framework on the JAVA. We would like to decode private key belong to the PEM file, could you please give me some pointers or links if possible.
user3516155 wrote:Did you read my previous response? In what form do you need the private key? Can you post a test file so that we can see what you are trying to deal with?
We are using the PEM files belong to the cyassl.
We would like to retrieve the private key from the PEM file.
Actually I want to retrieve private key belong to PEM file in the java code only. I am referring example belong to following linkThat code is for RSA keys in PKCS#8 format, and it comes after a conversion step using OpenSSL.