Hi, Sorry, I did a mistake last time. I was able to decode my private key by encoding it into PEM using PEM_Code::encode and then using PKCS8::load_key(). But still it fails to decode RAW_BER key. Muzaffar