error:0407008A:rsa routines:RSA_padding_check_PKCS1_type_1:invalid padding openssl C++

I am trying to verify a signature using OpenSSL in C++. The code is below:
bool verifySignature(QString updateInfo_file_signature, QString uInfo_file_hash) {
RSA *rsa = NULL;
BIO *keybio;

FILE *file = fopen("pubkey.pem&qu… Continue reading error:0407008A:rsa routines:RSA_padding_check_PKCS1_type_1:invalid padding openssl C++

error:0407008A:rsa routines:RSA_padding_check_PKCS1_type_1:invalid padding openssl C++

I am trying to verify a signature using OpenSSL in C++. The code is below:
bool verifySignature(QString updateInfo_file_signature, QString uInfo_file_hash) {
RSA *rsa = NULL;
BIO *keybio;

FILE *file = fopen("pubkey.pem&qu… Continue reading error:0407008A:rsa routines:RSA_padding_check_PKCS1_type_1:invalid padding openssl C++

How do I avoid the initial text portion when creating a PEM certificate with openssl?

I’ve created my own CA with openssl. The problem I’m having is that when I sign a CSR and generate a PEM certificate with it, there is an initial text portion in the certificate where I was only want the actual encoded certificate itself.
Continue reading How do I avoid the initial text portion when creating a PEM certificate with openssl?