• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Question PHP Warning: openssl_pkey_export()

phpPhil

New Pleskian
Hi Everyone,

i want to Renew my Let´s Encrypt Certificate but all I get is an Error:

Code:
PHP Warning: openssl_pkey_export(): cannot get key from parameter 1; File: letsencrypt/library/Acme/KeyGenerator.php, Line: 35

What can I do ?
 
If you use Debian, make sure that OpenSSL configuration file exists. If not, like here:

Code:
# ls -l /usr/lib/ssl/openssl.cnf
lrwxrwxrwx 1 root root 20 Mar 29 12:51 /usr/lib/ssl/openssl.cnf -> /etc/ssl/openssl.cnf
# ls -l /etc/ssl/openssl.cnf
ls: cannot access /etc/ssl/openssl.cnf: No such file or directory

Just copy it from extension directory:

Code:
# cp /opt/psa/admin/plib/modules/letsencrypt/resources/openssl.cnf /etc/ssl/openssl.cnf
 
Back
Top