Hello I have a problem. When I run this code ... //--------------- BIO *bio = BIO_new_mem_buf(key, -1 ); EVP_PKEY *pEvpPKey = PEM_read_bio_PrivateKey(bio, NULL, NULL, "wrong password"); if (pEvpPKey == NULL) { unsigned long err = ERR_GET_REASON(ERR_get_error()); } BIO_free(bio); //--------------- ... where "wrong password" is realy wrong password, the reason of error (variable err) is 100 = PEM_R_BAD_BASE64_DECODE. Why the error has so strange reason? When password is correct, error doesn't occur, so PEM isn't corrupted. Thanks for help, Lukasz Jazgar ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]