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

    Error with Certificate

    Scheduled Pinned Locked Moved General pfSense Questions
    2 Posts 1 Posters 445 Views 1 Watching
    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.
    • O Offline
      Overcon
      last edited by

      I don't know much about pfSense and I was trying to import an SSL certificate. I did something wrong with the certificate or importing it in the GUI and now it has an error, which is causing the firewall to pause as it processes the error and I cannot remove, or otherwise remove the failed certificate via the GUI and I don't know what to edit using SSH.

      Anyone can tell me how to remove this short of reinstalling the firewall?

      [09-Mar-2021 09:10:46 Etc/GMT-7] PHP Fatal error: Uncaught Exception: DateTime::__construct(): Failed to parse time string (@) at position 0 (@): Unexpected character in /etc/inc/certs.inc:712
      Stack trace:
      #0 /etc/inc/certs.inc(712): DateTime->__construct('@', Object(DateTimeZone))
      #1 /etc/inc/certs.inc(730): cert_format_date(NULL, NULL, false)
      #2 /etc/inc/certs.inc(1975): cert_get_dates('-----BEGIN CERT...', true, false)
      #3 /etc/inc/certs.inc(2188): cert_get_lifetime(Array)
      #4 /usr/local/www/system_certmanager.php(1406): cert_print_infoblock(Array)
      #5 {main}
      thrown in /etc/inc/certs.inc on line 712
      [09-Mar-2021 09:11:20 Etc/GMT-7] PHP Fatal error: Uncaught Exception: DateTime::__construct(): Failed to parse time string (@) at position 0 (@): Unexpected character in /etc/inc/certs.inc:712
      Stack trace:
      #0 /etc/inc/certs.inc(712): DateTime->__construct('@', Object(DateTimeZone))
      #1 /etc/inc/certs.inc(730): cert_format_date(NULL, NULL, false)
      #2 /etc/inc/certs.inc(1975): cert_get_dates('-----BEGIN CERT...', true, false)
      #3 /etc/inc/certs.inc(2188): cert_get_lifetime(Array)
      #4 /usr/local/www/system_certmanager.php(1406): cert_print_infoblock(Array)
      #5 {main}
      thrown in /etc/inc/certs.inc on line 712
      [09-Mar-2021 09:11:40 Etc/GMT-7] PHP Fatal error: Uncaught Exception: DateTime::__construct(): Failed to parse time string (@) at position 0 (@): Unexpected character in /etc/inc/certs.inc:712
      Stack trace:
      #0 /etc/inc/certs.inc(712): DateTime->__construct('@', Object(DateTimeZone))
      #1 /etc/inc/certs.inc(730): cert_format_date(NULL, NULL, false)
      #2 /etc/inc/certs.inc(1975): cert_get_dates('-----BEGIN CERT...', true, false)
      #3 /etc/inc/certs.inc(2188): cert_get_lifetime(Array)
      #4 /usr/local/www/system_certmanager.php(1406): cert_print_infoblock(Array)
      #5 {main}
      thrown in /etc/inc/certs.inc on line 712
      [09-Mar-2021 09:11:57 Etc/GMT-7] PHP Fatal error: Uncaught Exception: DateTime::__construct(): Failed to parse time string (@) at position 0 (@): Unexpected character in /etc/inc/certs.inc:712
      Stack trace:
      #0 /etc/inc/certs.inc(712): DateTime->__construct('@', Object(DateTimeZone))
      #1 /etc/inc/certs.inc(730): cert_format_date(NULL, NULL, false)
      #2 /etc/inc/certs.inc(1975): cert_get_dates('-----BEGIN CERT...', true, false)
      #3 /etc/inc/certs.inc(2188): cert_get_lifetime(Array)
      #4 /usr/local/www/system_certmanager.php(1406): cert_print_infoblock(Array)
      #5 {main}
      thrown in /etc/inc/certs.inc on line 712
      [09-Mar-2021 09:12:31 Etc/GMT-7] PHP Fatal error: Uncaught Exception: DateTime::__construct(): Failed to parse time string (@) at position 0 (@): Unexpected character in /etc/inc/certs.inc:712
      Stack trace:
      #0 /etc/inc/certs.inc(712): DateTime->__construct('@', Object(DateTimeZone))
      #1 /etc/inc/certs.inc(730): cert_format_date(NULL, NULL, false)
      #2 /etc/inc/certs.inc(1975): cert_get_dates('-----BEGIN CERT...', true, false)
      #3 /etc/inc/certs.inc(2188): cert_get_lifetime(Array)
      #4 /usr/local/www/system_certmanager.php(1406): cert_print_infoblock(Array)
      #5 {main}
      thrown in /etc/inc/certs.inc on line 712

      1 Reply Last reply Reply Quote 0
      • O Offline
        Overcon
        last edited by

        I updated to the Development 2.6 version which seemed to have resolved the issue and I was able to delete the certificate in the GUI.

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