Thank you viktor, Actually, I'm begginer so I don't know well. You said that the my input data is not a PKCS # 1 public key type. How do I distinguish between a PKCS # 1 type or an X.509 SPKI Public Key? -- Sent from: http://openssl.6102.n7.nabble.com/OpenSSL-User-f3.html