Error initializing public key: Unable to load SSL routine RSA_generate_key
Posted by - NA -, Last modified by Wayne Smith on 13 December 2016 04:12 PM

Issue: If Miva Merchant is reporting the error: Error initializing public key: Unable to load SSL routine RSA_generate_key┬Ł when trying to install the Production Releases or when trying to activate encryption.


Locate and Usually they're in /usr/lib/

NOTE: if not in /usr/lib, you will be fine with but MUST go in /usr/lib. From here you will need to configure Empresa's configuration file. Use the exact path to the openssl files.

If using a mivavm.conf, use:



If the host is setting MvCONFIG variables in httpd.conf, use the below configurations and restart apache:


SetEnv MvCONFIG_SSL_CRYPTO /path/to/

*Note* If you're using a Verio FreeBSD server you need to use the /usr/lib/compat/ and /usr/lib/compat/ openssl files. Remember to use the highest version number, ie

Audience: Server Administrators with super user or root access

(352 vote(s))
This article was helpful
This article was not helpful

Comments (0)
Post a new comment
Full Name:
CAPTCHA Verification 
Please enter the text you see in the image into the textbox below. This is required to prevent automated registrations and form submissions.

Help Desk Software by Kayako