Closed vabatta closed 5 years ago
2019-01-02T12:28:20.709031+00:00 mail postfix/smtpd[692]: warning: TLS library problem: error:0B080074:x509 certificate routines:X509_check_private_key:key values mismatch:../crypto/x509/x509_cmp.c:295:
it looks like the private key does not match the certificate, interesting. It should not happen because integration tests handle this specific case.
Can you verify that your private key matches ?
docker exec -ti mailserver bash
openssl x509 -noout -modulus -in /etc/letsencrypt/live/mail.domain.tld/cert.pem | openssl md5 ; openssl rsa -noout -modulus -in /etc/letsencrypt/live/mail.domain.tld/privkey.pem | openssl md5) | uniq
If you get more than one identifier, then you key and cert don't match.
I had the same issue. I solved this by removing the acme.json file and recreating it. I guess this happened to me because I was using one of the first stable-1.1 docker images (using older traefik release with acme v1 json format).
@hardware They do coincide (both before and now, I did the check). I just reactivated the certificates from Traefik, recreated the container and everything works as expected. Seems really strange to me as I didn't change anything until now. Thanks for the help!
Classification
Please delete options that are not relevant.
Reproducibility
Please delete options that are not relevant.
Docker information
Description
After adding the Let's encrypt certificates from Traefik to the mailserver (as described in ssl-certificates), it disables TLS by saying that the certificate has a value mismatch.
Expected results
TLS enabled with Traefik certificates.
Actual results
TLS disabled.
Debugging information
Configuration (docker-compose.yml, traefik.toml...etc)
Traefik has the correct values for the
Cloudflare
provider (CF_API_EMAIL
&CF_API_KEY
=> theGlobal API Key
not theOrigin CA Key
).Relevant config values from files.
docker-compose.yml
traefik.toml