Originally created by @jlesage on GitHub (Jun 27, 2016).
I have a scenario where, during server deployment, ${CERTDIR}/${domain}/cert.pem is pointing to a self-signed certificate. This is done to make sure applications won't complain about missing certificate if letsencrypt.sh didn't ran yet.
When running letsencrypt.sh in this scenario, the script fails because the existing certificate doesn't contains the string DNS:.
I guess that not finding the DNS: string should not be considered as an error and should force a renew.
Originally created by @jlesage on GitHub (Jun 27, 2016).
I have a scenario where, during server deployment, ${CERTDIR}/${domain}/cert.pem is pointing to a self-signed certificate. This is done to make sure applications won't complain about missing certificate if letsencrypt.sh didn't ran yet.
When running letsencrypt.sh in this scenario, the script fails because the existing certificate doesn't contains the string `DNS:`.
The problem is with the following line:
```
certnames="$(openssl x509 -in "${cert}" -text -noout | grep DNS: | _sed 's/DNS://g' | tr -d ' ' | tr ',' '\n' | sort -u | tr '\n' ' ' | _sed 's/ $//')"
```
I guess that not finding the `DNS:` string should not be considered as an error and should force a renew.
Not going to fix this, if this is really necessary I suggest putting your certificate in fullchain.pem, as that is what you'd want to use later anyway and the script should work fine that way.
@lukas2511 commented on GitHub (Jan 30, 2017):
Not going to fix this, if this is really necessary I suggest putting your certificate in fullchain.pem, as that is what you'd want to use later anyway and the script should work fine that way.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Originally created by @jlesage on GitHub (Jun 27, 2016).
I have a scenario where, during server deployment, ${CERTDIR}/${domain}/cert.pem is pointing to a self-signed certificate. This is done to make sure applications won't complain about missing certificate if letsencrypt.sh didn't ran yet.
When running letsencrypt.sh in this scenario, the script fails because the existing certificate doesn't contains the string
DNS:.The problem is with the following line:
I guess that not finding the
DNS:string should not be considered as an error and should force a renew.@lukas2511 commented on GitHub (Jan 30, 2017):
Not going to fix this, if this is really necessary I suggest putting your certificate in fullchain.pem, as that is what you'd want to use later anyway and the script should work fine that way.