PHP error installing pfSense-pkg-acme: 0.9_1
-
Hello,
Since 24.11 I've had PHP errors flagged in the pfsense interface, I tracked them down to ACME so thought the simplest thing would be to reinstall. I get this on install now...
Executing custom_php_install_command()...<pre style="white-space: pre-wrap;">PHP ERROR: Type: 1, File: /usr/local/pkg/acme/acme.inc, Line: 2938, Message: Uncaught TypeError: Cannot access offset of type string on string in /usr/local/pkg/acme/acme.inc:2938 Stack trace: #0 /usr/local/pkg/acme/acme.inc(2916): pfsense_pkg\acme\acme_convert_letsencryptv1_to_letsencryptv2() #1 /etc/inc/pkg-utils.inc(800) : eval()'d code(1): pfsense_pkg\acme\acme_custom_php_install_command() #2 /etc/inc/pkg-utils.inc(800): eval() #3 /etc/inc/pkg-utils.inc(917): eval_once() #4 /etc/rc.packages(76): install_package_xml() #5 {main} thrown</pre>===== Message from php83-ftp-8.3.12:
Running on a Netgate 3100, no other mods, very vanilla.
Any ideas?
-
@istacey said in PHP error installing pfSense-pkg-acme: 0.9_1:
Any ideas?
Yes and no.
It fails because it found something totally not expected thus 'wrong' in your config.xml file.
The solution is easy.
First, export your pfSense config.xml, and have a look.Here :
I have a section, the first, <accountkeys>, this <acmeserver>letsencrypt-staging-2</acmeserver> (with the name "test") that I never use.
"letsencrypt-staging-2" is only useful for testing, as the certificates obtained are not trusted by browsers.You could even delete this block - the one that uses the "staging" :
<item> <accountkey>LS0tLS1CRUdJTiBSU0EgUFJJVkFURSBLRVktLS0tLQ0KTUlJSktnSUJBQUtDQWdFQXRMT...... xbE9ZdXc9PQ0KLS0tLS1FTkQgUlNBIFBSSVZBVEUgS0VZLS0tLS0NCg==</accountkey> <name>test</name> <acmeserver>letsencrypt-staging-2</acmeserver> <renewafter></renewafter> <errorfiles></errorfiles> <email><![CDATA[gw.kroeb@gmail.com]]></email> <descr><![CDATA[test nsupdate]]></descr> </item>
Save, import back in. Install acme and ... => no more issues <====
What was the problem ?
The second, using "letsencrypt-production-2" is the one used for the real works.