Yvan Posted January 26 Share Posted January 26 Nginx cannot start properly and indicates a certificate issue. How should I resolve this? The services are working fine, and Unraid can access the internet without any issues. Can I update the certificate online to fix this problem? If so, please guide me on the steps to perform the operation # cat /var/log/nginx/error.log 2024/01/26 23:04:40 [emerg] 6917#6917: cannot load certificate "/boot/config/ssl/certs/Home-Lab_unraid_bundle.pem": PEM_read_bio_X509_AUX() failed (SSL: error:0909006C:PEM routines:get_name:no start line:Expecting: TRUSTED CERTIFICATE) 2024/01/26 23:09:47 [emerg] 14933#14933: cannot load certificate "/boot/config/ssl/certs/Home-Lab_unraid_bundle.pem": PEM_read_bio_X509_AUX() failed (SSL: error:0909006C:PEM routines:get_name:no start line:Expecting: TRUSTED CERTIFICATE) 2024/01/26 23:21:17 [emerg] 20408#20408: cannot load certificate "/boot/config/ssl/certs/Home-Lab_unraid_bundle.pem": PEM_read_bio_X509_AUX() failed (SSL: error:0909006C:PEM routines:get_name:no start line:Expecting: TRUSTED CERTIFICATE) # ./rc.nginx start unable to load certificate 23184006805312:error:0909006C:PEM routines:get_name:no start line:crypto/pem/pem_lib.c:745:Expecting: TRUSTED CERTIFICATE unable to load certificate 23330273797952:error:0909006C:PEM routines:get_name:no start line:crypto/pem/pem_lib.c:745:Expecting: TRUSTED CERTIFICATE Regenerating private key and certificate... cat: /tmp/cert.pem: No such file or directory unable to load certificate 22473371236160:error:0909006C:PEM routines:get_name:no start line:crypto/pem/pem_lib.c:745:Expecting: TRUSTED CERTIFICATE Starting Nginx server daemon... # ls -l /boot/config/ssl/certs/Home-Lab_unraid_bundle.pem -rw------- 1 root root 1708 Jan 26 23:28 /boot/config/ssl/certs/Home-Lab_unraid_bundle.pem # cat /boot/config/ssl/certs/Home-Lab_unraid_bundle.pem -----BEGIN PRIVATE KEY----- MIIEvwIBADANBgkqhkiG9w0BAQEFAASCBKkwggSlAgEAAoIBAQDCDcCWa0fWkmAM 9areTIaM7QKhXulDqGOz4MRcTKhm9JXdYr1CtH6r9MB46O/whSd0mz69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g8KONXPiW3Ue+BooxfceUCt+z2bGyKnAM 6TLN5lMKVY37akUEYyHGnMOZUdQGJAqZbtvSOI+3ZslWnt8LQzK/hClhiQKBgQC+ Ymqb1lbbHsBHvcJbFvw++9X2F/G30FMo2fztPtf2ISlZPQw3zGH1T5ejGBow+nyW aLBTSQt7BP1Pb6HaWak8TRceJfQ0lC/nn7JXatpWM4Ql2E9TTz5AqD+8JnfTXCjT t4g2U4q5R+Zj1g9iEMeB+tXWN9VIZd9L1MSD2akAdQKBgQC+PrU6iOR+RedMtba/ kYfmctv3ZR+HLOvDo2sv4E8fTFLXKRKOAvE/WlIASIe+5QXStRExSQz2y7ECSHlp kHTXZ4RIBzi14lf1zgETzJYEAo0Rol+bPo9YqHdqhXqLCLzfHRxnmNdDmGvW1qgU tyZa+pqZv+TMlziH+pDm5tfOhg== -----END PRIVATE KEY----- Quote Link to comment
trurl Posted January 26 Share Posted January 26 https://docs.unraid.net/unraid-os/manual/security/secure-webgui-ssl/ Quote Link to comment
Yvan Posted January 26 Author Share Posted January 26 https://10-1-1-254.2735a6d68acefe008cf0b2fb424e760a72acd228.myunraid.net/ This link is also inaccessible. How can I disable SSL access using the CLI? Quote Link to comment
trurl Posted January 26 Share Posted January 26 Management Access settings are on the flash drive in config/ident.cfg Quote Link to comment
JorgeB Posted January 26 Share Posted January 26 Assuming it's a recent Unraid release you can also type in the CLI: use_ssl no Quote Link to comment
Yvan Posted January 26 Author Share Posted January 26 USE_SSL="no" PORT="80" PORTSSL="443" use ssl is no,When I enter unraid gui mode, why does the default still be https? Quote Link to comment
Yvan Posted January 26 Author Share Posted January 26 11 minutes ago, JorgeB said: Assuming it's a recent Unraid release you can also type in the CLI: use_ssl no i do it and rebbot unriad, but when i enter unraid with gui, its still use https Quote Link to comment
Solution JorgeB Posted January 26 Solution Share Posted January 26 13 minutes ago, Yvan said: USE_SSL="no" With this set it should not use https, please post the diagnostics. Quote Link to comment
Yvan Posted January 26 Author Share Posted January 26 2 minutes ago, JorgeB said: With this set it should not use https, please post the diagnostics. is ok now, thanks! 1 Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.