FreePBX Version
FreePBX 17
Issue Description
After every framework module install, the warning "Sangoma Debian Repository GPG Key Expiring Soon" systematically appears.
After investigating :
The regex used to capture the expiration date of the GPG doesn't capture it.
The reason : my default UI language is fr_FR and the output of the gpg command depends on the locale.
No problem when switching the default UI language (UIDEFAULTLANG) to en_US.
Ideas for a fix :
- force the locale to en_US before the gpg command (add LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 LANGUAGE=en_US.UTF-8 before "$gpgBinary")
- use "--with-colons" in the gpg command (outputs machine parsable info) and change the regex
Operating Environment
| core | 17.0.18.51 | Activé | GPLv3+ | Sangoma |
| framework | 17.0.32 | Activé | GPLv2+ | Sangoma |
Asterisk 22.8.2
Debian GNU/Linux 12 (bookworm)
UIDEFAULTLANG = fr_FR (in Settings > Advanced Settings)
Relevant log output
root@freepbx17-dev:/opt/celya/freepbx# LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 LANGUAGE=en_US.UTF-8 gpg --show-keys /etc/apt/trusted.gpg.d/freepbx.gpg
pub rsa4096 2024-02-26 [SC] [expires: 2028-02-11]
991C357C8A359D0382BC6E87C4DFE68FCE6DE186
uid Aptly <aptly@sangoma.com>
sub rsa4096 2024-02-26 [E] [expires: 2028-02-11]
root@freepbx17-dev:/opt/celya/freepbx# LANG=fr_FR.utf8 LC_ALL=fr_FR.utf8 LANGUAGE=fr_FR.utf8 gpg --show-keys /etc/apt/trusted.gpg.d/freepbx.gpg
pub rsa4096 2024-02-26 [SC] [expire : 2028-02-11]
991C357C8A359D0382BC6E87C4DFE68FCE6DE186
uid Aptly <aptly@sangoma.com>
sub rsa4096 2024-02-26 [E] [expire : 2028-02-11]
FreePBX Version
FreePBX 17
Issue Description
After every framework module install, the warning "Sangoma Debian Repository GPG Key Expiring Soon" systematically appears.
After investigating :
The regex used to capture the expiration date of the GPG doesn't capture it.
The reason : my default UI language is fr_FR and the output of the gpg command depends on the locale.
No problem when switching the default UI language (UIDEFAULTLANG) to en_US.
Ideas for a fix :
Operating Environment
| core | 17.0.18.51 | Activé | GPLv3+ | Sangoma |
| framework | 17.0.32 | Activé | GPLv2+ | Sangoma |
Asterisk 22.8.2
Debian GNU/Linux 12 (bookworm)
UIDEFAULTLANG = fr_FR (in Settings > Advanced Settings)
Relevant log output
root@freepbx17-dev:/opt/celya/freepbx# LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 LANGUAGE=en_US.UTF-8 gpg --show-keys /etc/apt/trusted.gpg.d/freepbx.gpg pub rsa4096 2024-02-26 [SC] [expires: 2028-02-11] 991C357C8A359D0382BC6E87C4DFE68FCE6DE186 uid Aptly <aptly@sangoma.com> sub rsa4096 2024-02-26 [E] [expires: 2028-02-11] root@freepbx17-dev:/opt/celya/freepbx# LANG=fr_FR.utf8 LC_ALL=fr_FR.utf8 LANGUAGE=fr_FR.utf8 gpg --show-keys /etc/apt/trusted.gpg.d/freepbx.gpg pub rsa4096 2024-02-26 [SC] [expire : 2028-02-11] 991C357C8A359D0382BC6E87C4DFE68FCE6DE186 uid Aptly <aptly@sangoma.com> sub rsa4096 2024-02-26 [E] [expire : 2028-02-11]