从Let's Encrypt证书中自动提取pkcs12

我使用的服务器软件需要PKCS12(.pfx)格式的SSL证书。 让我们只encryption给我PEM证书,这是自动刷新。 我需要在PEM证书更改时创build新的PKCS12证书。

密钥转换(在文件夹/etc/letsencrypt/live/<servername>/ ):

 openssl pkcs12 -export -out cert.pfx -inkey privkey.pem -in cert.pem -certfile chain.pem 

在root用户crontab中:

 35 5,17 * * * letsencrypt renew 

每次letsencrypt renew后运行密钥转换命令是否足够? 或者是否可以configuration让我们encryption也生成PKCS12证书更新?