wildcard certificate

mrmagoo

Member
Mar 7, 2021
1
0
21
40
Hi,
I'm trying to install a Wildcard SSL certificate into pve but everytime I load the certificate i get this error :
/etc/pve/local/pveproxy-ssl.key: failed to load local private key (key_file or key) at /usr/share/perl5/PVE/APIServer/AnyEvent.pm line 1917.
and I can't access into web interface.
I've to delete key and pem file and reboot pveproxy server to restore.

How I can import this certificate correctly? It's work regular in other server and devices

thank's
Davide
 
If someone runs across the issue of installing a wildcard (or prob any cert). Please download openssl, terminal into that directory.. but the certificate you have.. into the directory. IN my case, I exported a pfx from my exchange server

Run these commands to get the 2 files you need
Key
openssl pkcs12 -in yourcert.pfx -nocerts -nodes -out yourcertpem.key
Cert
openssl pkcs12 -in yourcert.pfx -out yourcertpem.pem

Just wasted 30m on this, hopefully safe you 25m :D
 
If someone runs across the issue of installing a wildcard (or prob any cert). Please download openssl, terminal into that directory.. but the certificate you have.. into the directory. IN my case, I exported a pfx from my exchange server

Run these commands to get the 2 files you need
Key
openssl pkcs12 -in yourcert.pfx -nocerts -nodes -out yourcertpem.key
Cert
openssl pkcs12 -in yourcert.pfx -out yourcertpem.pem

Just wasted 30m on this, hopefully safe you 25m :D
Tried this, does not work. Got error that the file was not in PEM format.