did anyone ever need to register online at Bradesco? in PHP I'm presicando of (digitally signed using the PKCS # 7 standard with the RSA 2048 and SHA256 algorithms). In a search on the net I found the function

openssl_pkcs7_sign(realpath("msg.txt"), "signed.txt",
        'file://'.realpath('Certificado_A1_2019.pfx'),
        array ('file://'.realpath('Certificado_A1_2019.pfx'), "3244234234"),
        array ()
    ); 

which performs the cryptography of the message, but always returns the message

Warning: openssl_pkcs7_sign (): error getting private key

has anyone had this problem?

0 Answers