Error with Certificate
-
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 -
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.