Freepbx without gpg?

Hi. my freepbx server has no internet access. I get this error every time I click on “Apply Config”:
exit: 255
PHP Fatal error: Uncaught exception ‘Exception’ with message ‘Unable to find GPG key’ in /srv/http/freepbx/admin/libraries/BMO/GPG.class.php:200
Stack trace:

0 /srv/http/freepbx/admin/libraries/BMO/GPG.class.php(210): GPG->getKey() #1 /var/lib/asterisk/bin/retrieve_conf(20): GPG->trustFreePBX() #2 {main}

thrown in /srv/http/freepbx/admin/libraries/BMO/GPG.class.php on line 200

I want to know is it possible to disable gpg? thank you

No their is not. How would you connect to our mirror servers without internet?

I had internet before installtion. Server has no internet now.
There is no way to solve this? like edit admin/libraries/BMO/GPG.class.php ?
I also find this:
tr.opensuse.org/SDB:GPGoffle:_Checking_GPG_Keys_Automatically_Without_Connecting_to_the_Internet
but I hope there is simple solutions.

But why is this a problem. If you dont have internet then you can not update modules either. Its 1 and the same

Just connect it to the internet once so that it can get the keys (connect to internet, run apply config, disconnect). After that you will be fine.

If you really can’t connect that machine to the internet, you can manually import the GPG keys with a sneakernet.

On any internet connected machine:

gpg --recv-key 9F9169F4B33B4659
gpg --recv-key 86CE877469D2EAD9
gpg --export-key -a 9F9169F4B33B4659 > 9F9169F4B33B4659.key
gpg --export-key -a 86CE877469D2EAD9 > 86CE877469D2EAD9.key

That will give you the two critical keys needed. Copy those two files across to the FreePBX machine somehow. When you’ve got them there, do this:

su - asterisk
gpg --import 9F9169F4B33B4659.key
gpg --import 86CE877469D2EAD9.key

Note that you MUST DO THAT AS THE ASTERISK USER. Or, specifically, whichever user your web server is running as.

1 Like