Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    No WebGUI after config restore ("couldn't read private key")

    Scheduled Pinned Locked Moved webGUI
    2 Posts 1 Posters 2.0k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • W
      wescb
      last edited by

      I had a router (Soekris 5501-70) destroyed by lightning yesterday. I replaced it with a Soekris 6501, opened my config file and changed the interface names (from VRxx on the 5501 to EMxx on the 6501) and restored. All seemed well, the router functions and I can SSH into it but I'm unable to access the webGUI via HTTP or HTTPS.

      I tried restarting it and /etc/var/system.log shows:

      
      php: rc.restart_webgui: The command '/usr/local/sbin/lighttpd -f /var/etc/lighty-webConfigurator.conf' returned exit code '255', the output was '2014-08-21 13:36:21: (network.c.578) SSL: couldn't read private key from '/var/etc/cert.pem''
      rc.restart_webgui: Creating rrd update script
      
      

      I've made sure that cert.pem exists in /var/etc but I'm unsure what to do at this point. It's remote so anything I could do via SSH would be great.

      Thanks in advance,
      Wes

      1 Reply Last reply Reply Quote 0
      • W
        wescb
        last edited by

        Just in case someone else should stumble across this issue. I was able to get back in via HTTPS by:

        Connecting via SSH and resetting the LAN IP (to what it was), and enabling HTTP when prompted. I then deleted the "webconfigurator default" cert, created a new CA and a new cert and switched the system back to HTTPs and all seems well.

        1 Reply Last reply Reply Quote 0
        • First post
          Last post
        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.