[openssl-users] BN_mod_inverse:no inverse when calling OCSP_basic_sign

Dr. Stephen Henson steve at openssl.org
Wed Oct 5 18:52:01 UTC 2016

On Wed, Oct 05, 2016, Eric To wrote:

> Any hint on troubleshooting this would be great. Here is how I call the
> OCSP_basic_sign:
> X509 *signer;
> EVP_PKEY *key;
> ...
> OCSP_basic_sign(bresp,
>                     signer, key,
>                     EVP_sha1(),
>                     NULL, 0);
> But getting the following error internally from OCSP_basic_sign:
> OPENSSL ERROR: error:0306E06C:bignum routines:BN_mod_inverse:no inverse
> OPENSSL ERROR: error:0D0DC006:asn1 encoding routines:ASN1_item_sign_ctx:EVP
> lib

Where does the key come from? Trying using the -check option to the rsa
utility to see if it is valid.

Dr Stephen N. Henson. OpenSSL project core developer.
Commercial tech support now available see: http://www.openssl.org

More information about the openssl-users mailing list