Project

General

Profile

Actions

Bug #1190

closed

Incorrectly pasted SSL Cert breaks the webconfigurator

Added by Gary Richards almost 14 years ago. Updated over 12 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
Certificates
Target version:
-
Start date:
01/13/2011
Due date:
% Done:

100%

Estimated time:
Plus Target Version:
Release Notes:
Affected Version:
2.0
Affected Architecture:

Description

I just pasted an SSL cert into the cert manager to use as the cert for the web interface. I managed to paste the cert missing the last line: -----END CERTIFICATE-----

Presumably no validation takes place because /var/etc/cert.pem was still created as a concatenation of the pasted cert and key, but obviously the last line of my cert mentioned above was missing. The webconfigurator restarted and then I was unable to access it anymore. I fixed it by tracking down the above file and restarting the webconfigurator from the console.

Is it possible to do validation on the pasted certs? Just a check that the first and last lines are sane would be a start?

Actions #1

Updated by Gary Richards almost 14 years ago

Actually, I lie. That hasn't fixed it. /var/etc/cert.pem is being replaced when the webConfigurator restarts?!

Help!

Actions #2

Updated by Jim Pingle almost 14 years ago

We already validate the first line, but not the last. Extra safety belts may not hurt though.

The cert on the filesystem will be replaced with what is stored in the config.xml file. You can't fix it by editing the file on the box, you'll have to fix the certificate in the config.

From the console you can either choose the menu option to set the LAN IP and then re-enter the current LAN IP, and it will offer to reset the GUI to HTTP and let you in, or you can hand edit config.xml and change it to HTTP. Once you're back in, fix the cert in the GUI and then it should be OK.

Actions #3

Updated by Jim Pingle almost 14 years ago

  • Status changed from New to Feedback
  • % Done changed from 0 to 100
Actions #4

Updated by Jim Pingle over 12 years ago

  • Status changed from Feedback to Resolved
Actions

Also available in: Atom PDF