1
Development and Code Review / Re: Powershell script for downloading Let's encrypt certificate
« on: October 30, 2018, 07:36:45 am »
Hi Fabian,
thank you for your feedback! I will play around with your method and update the script.
Please correct me if i'm wrong:
I grab the config.xml and parse it, reading the path /opnsense/OPNsense/AcmeClient/certificates
and find the entry by /opnsense/OPNsense/AcmeClient/certificates/certificate/name to get the certRefId.
The certRefId is used in the path /opnsense/cert to get the crt and the prv values and also the caref as CertRefId for the CA certificate.
Afterwards convert and combine the crt-values and tadaa, complete cer-file for further conversions.
Best regards,
Max
thank you for your feedback! I will play around with your method and update the script.
Please correct me if i'm wrong:
I grab the config.xml and parse it, reading the path /opnsense/OPNsense/AcmeClient/certificates
and find the entry by /opnsense/OPNsense/AcmeClient/certificates/certificate/name to get the certRefId.
The certRefId is used in the path /opnsense/cert to get the crt and the prv values and also the caref as CertRefId for the CA certificate.
Afterwards convert and combine the crt-values and tadaa, complete cer-file for further conversions.
Best regards,
Max