-
Notifications
You must be signed in to change notification settings - Fork 181
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Certificate renewal fails with ERROR: No CA found for server certificate #8983
Comments
You give the fullchain.pem as server certificate. The command expect only the server cert here. The fullchain.pem can be provided with --intermediate-ca-file . This option can be used multiple times in this command. |
Ok, has this changed approximately 3 months ago? Because I use the fullchain.pem als server certificate in uyuni since years with exactly this command. Also all apache vhosts and appliances accecpt the fullchain.pem as server certificate without any problem. |
Tried this - but it will also fail: mgr-ssl-cert-setup --root-ca-file=/opt/cert/isrgrootx1.pem --intermediate-ca-file=/opt/cert/lets-encrypt-r3.pem --intermediate-ca-file=/opt/cert/fullchain.pem --server-cert-file=/opt/cert/cert.pem --server-key-file=/home/wzowim00/cert/privkey.pem As the CA certificate has been changed, please deploy the CA to all registered clients. ERROR: Failed to upload CA Certificate to DB |
I found this logfile, which contains the last successful attempt as well as the currently failed one. /var/log/rhn/mgr-ssl-cert-setup.log: As the CA certificate has been changed, please deploy the CA to all registered clients. 2024/06/28 18:56:40 +02:00: /usr/lib/python3.6/site-packages/certs/mgr_ssl_cert_setup.py.processCommandline(117) - ['/usr/bin/mgr-ssl-cert-setup', '--root-ca-file=/opt/cert/isrgrootx1.pem', '--intermediate-ca-file=/opt/cert/lets-encrypt-r3.pem', '--server-cert-file=/opt/cert/fullchain.pem', '--server-key-file=/opt/cert/privkey.pem'] |
For easier debugging it would be helpful when you could provide all the certificates. NOT the private key please :-) |
The ZIP include: I just download the lets-encrypt-r3.pem and isrgroot1.pem from https://letsencrypt.org/certificates/ and made a diff to my files, but there were no differences, so I think this root and intermediate certificate are still valid. |
Using The command:
should have worked. The error you reported is a different one as the one before. |
The error happens when importing the CA into the database. If you see the error |
Problem description
I use a wildcard certificate from Let's Encrypt, which has to be renewed every three months.
This is actually a documented standard procedure that I always do in the same way - but there is now a problem with the command in the current renewal:
uyuni:~ # mgr-ssl-cert-setup --root-ca-file=/opt/cert/isrgrootx1.pem --intermediate-ca-file=/opt/cert/lets-encrypt-r3.pem --server-cert-file=/opt/cert/fullchain.pem --server-key-file=/opt/cert/privkey.pem
ERROR: No CA found for server certificate
Only the fullchain.pem and the privkey.pem are new. However, these are valid as I also use them in many other places (web server, firewall etc.).
The root and intermediate certificates have not changed either - they are from here:
https://letsencrypt.org/certificates/
The renewal three months ago still worked without any problems with the same command
Steps to reproduce
...
Uyuni version
Uyuni proxy version (if used)
No response
Useful logs
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: