Spredzy / lecm

Let's Encrypt Certificate Manager
Apache License 2.0
41 stars 10 forks source link

Get the intermediate certificate whenever needed #64

Closed fcharlier closed 3 years ago

fcharlier commented 3 years ago

The intermediate certificate was currently retrieved locally only for the 1st certificate generation.

This causes issues when the intermediate cerficiate changes (recent change from X3 to R3) and the certificates just need to be renewed.

This patch moves the retrieval of the intermediate certificate along with the certificate creation to be sure the former exists before being attached to the latter.

fcharlier commented 3 years ago

Note: this is required for #63 to work correctly when renewing certificates.