Jump to content

[V6.9.2] - Incomplete certificate_bundle.pem when provisioning certificate for SSL


Recommended Posts

I have an issue where after taking server offline to make some hardware changes I couldn't access the web gui once server booted back up. I saw from searching forum some similar issues and was able to resolve and get it working again by deleting the SSL folder on the flash drive.

 

But now when I try to provision a new certificate on the management access page it creates it but the file is incomplete leading to the below error when rebooting server and I now have to delete the SSL folder before any reboot. To workaround it for the time being I am just not going to provision another cetificate but I would like to be able to use SSL again.

 

Error:

Feb 18 13:18:12 Asgard root: nginx: [emerg] cannot load certificate "/etc/ssl/certs/unraid_bundle.pem": PEM_read_bio_X509() failed (SSL: error:0908F066:PEM routines:get_header_and_data:bad end line)
Feb 18 13:18:12 Asgard root: nginx: configuration file /etc/nginx/nginx.conf test failed
Feb 18 13:18:12 Asgard root: Invalid configuration, Nginx not reloaded
Feb 18 13:18:12 Asgard emhttpd: shcmd (1689): exit status: 1

 

When I look at the certificate that has been saved in the boot folder it looks like it is incomplete i.e. it should end with -----END CERTIFICATE----- but it looks like the file is getting cut of before the end.

 

I am hoping someone can steer me in the right direction here because I have deleted the SSL folder and tried provisioning a new cert several times now and everytime the file looks like the below where it just cuts off.

 

I have attached diagnostics.

 

image.png.d00e1555cd635b97b434d2d507412a11.png

asgard-diagnostics-20220218-1318.zip

Link to comment

Yep - I'm seeing the exact same behavior here.  HUGELY frustrating as I've been pulling my hair out and spent like 12 hours trying different approaches to get my SSL access back before I figured out it is almost certainly related to this.   I believe I have an older cert as well so that will buy me a little time I suppose, but I think this is a defect that needs a ticket opened.

  

NOTE:  The length of my older PEM file is 15,844 bytes, and the problematic one here is 12,000 bytes.

Edited by BurntOC
Link to comment
  • 1 month later...

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...