我可以很容易地要求通配符证书
sudo certbot -d example.com -d *.example.com -manual -preferred-challenges dns-01 -server https://acme-v02.api.letsencencrypt.org/directory certonlyly
我得到了生成的三个文件:
privkey = /etc/letsencrypt/live/example.com/privkey.pem
链= /etc/letsencrypt/live/example.com/chain.pem
FullChain = /etc/letsencrypt/live/example.com/fullchain.pem
谁能建议我可以使用哪些OpenSSL命令将这些.pem文件转换为Prism Central/Prism元素所需的格式?我尝试从https://www.sslsupportdesk.com/openssl-commands/尝试多个命令,但我似乎找不到确切的一个。
如果我需要其他证书,我还可以从这里获得中间/根证书。
https://letsencrypt.org/certificates/
我也希望最终找到一种脚本脚本的方法,因此,如果有人知道如何通过CLI替换Prism Central/Prism Element中的证书,我也很感激。不过,最初,我很高兴能找到正确的证书格式。
最好的答案雷德
\r\nTo answer your question, openssl is not needed to convert the certificates.\r\nWhat is tricky is to get Nutanix to take the chain.pem, after some frustrating tries I got it to work like this:
\r\n
\r\n ncli ssl-certificate import certificate-path=\/full\/path\/to\/cert.pem cacertificate-path=\/full\/path\/to\/mychain.pem key-path=\/full\/path\/to\/privkey.pem key-type=\"RSA_2048\"
\r\n
\r\nWhere mychain.pem I created by combining https:\/\/letsencrypt.org\/certs\/letsencryptauthorityx3.pem.txt with https:\/\/letsencrypt.org\/certs\/isrgrootx1.pem.txt
\r\nSo cat letsencryptauthorityx3.pem.txt isrgrootx1.pem.txt > mychain.pem
\r\n
\r\nHope this helps someone,
\r\n
\r\nReinder - TriOpSys - NL","className":"post__content__best_answer"}">