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: > > OCSP_BASICRESP *bresp; > 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. Steve. -- Dr Stephen N. Henson. OpenSSL project core developer. Commercial tech support now available see: http://www.openssl.org