xulei
(徐 磊)
1
- Caddy cannot be reloaded after adding red box TLS(I use it in a virtual machine)
Operating Steps:
- Caddyfile configuration adding red box TLS : ,
And There is no problem with the certificate in the file.
- Then execute “systemctl reload caddy”
3.
- Then execute “systemctl status caddy.service”
5.
’ 9月 04 10:06:11 zzvc-virtual-machine caddy[116032]: reload: sending configuration to instance: caddy responded with error: HTTP 400: {“error”:“loading config: loading new config: loading http app module: provision http: getting tls app: loading tls app module: provision tls: loading certificates: tls: failed to find “CERTIFICATE” PEM block in certific loading tls app module: provision tls: loading certificates: tls: failed to find “CERTIFICATE” PEM block in certificate input after skipping PEM blocks of the following types: [CERTIFICATE REQUEST]”,“status_code”:400}
’
Your certificate file doesn’t seem to be in the format Caddy is expecting.
It should look something like this:
-----BEGIN CERTIFICATE-----
MIIDdTCCAl2gAwIBAgILBAAAAAABFUtaw5QwDQYJKoZIhvcNAQEFBQAwVzELMAkG
A1UEBhMCQkUxGTAXBgNVBAoTEEdsb2JhbFNpZ24gbnYtc2ExEDAOBgNVBAsTB1Jv
...
DKqC5JlR3XC321Y9YeRq4VzW9v493kHMB65jUr9TU/Qr6cf9tveCX4XSQRjbgbME
HMUfpIBvFSDJ3gyICh3WZlXi/EjJKSZp4A==
-----END CERTIFICATE-----
-----BEGIN CERTIFICATE-----
MIIEYDCCA0igAwIBAgILBAAAAAABL07hRQwwDQYJKoZIhvcNAQEFBQAwVzELMAkG
A1UEBhMCQkUxGTAXBgNVBAoTEEdsb2JhbFNpZ24gbnYtc2ExEDAOBgNVBAsTB1Jv
...
hag8IyrhFHvBN91i0ZJsumB9iOQct+R2UTjEqUdOqCsukNK1OFHrwZyKarXMsh3o
wFZUTKiL8IkyhtyTMr5NGvo1dbU=
-----END CERTIFICATE-----
1 Like
That’s a certificate request, not a certificate.
xulei
(徐 磊)
5
Thank you very much. I’ll try again
system
(system)
Closed
6
This topic was automatically closed after 30 days. New replies are no longer allowed.