No description
- Go 81%
- Shell 6.5%
- JavaScript 4.9%
- PowerShell 4.7%
- Makefile 2.9%
|
|
||
|---|---|---|
| cmd/helper | ||
| internal | ||
| tests | ||
| .air.toml | ||
| .gitignore | ||
| go.mod | ||
| go.sum | ||
| LICENSE | ||
| Makefile | ||
| package-lock.json | ||
| package.json | ||
| README.md | ||
| TODO.md | ||
Installing the PGP Helper Certificate in Firefox
Firefox uses its own certificate store instead of the system's. Here are two ways to install the PGP Helper certificate.
Method 1: Manual Installation through Firefox UI
- Open Firefox
- Go to Menu (≡) -> Settings -> Privacy & Security
- Scroll down to "Certificates" section
- Click "View Certificates"
- In the Certificate Manager, go to "Authorities" tab
- Click "Import"
- Navigate to
~/.pgp-helper/ca-cert.pem - In the dialog that appears, check:
- "Trust this CA to identify websites"
- Click "OK"
- Click "OK" to close Certificate Manager
Note you might have to show hidden files to locate on MacOS / Linux
- MacOS:
command + shift + . - Ubuntu 22.04+:
ctrl + hin the default file manager before clicking import
Note that you have to delete the PGP Helper Root CA from the Firefox Authorities store if you re-install the app.
Method 2: Command Line Installation (Using certutil)
Prerequisites
First, install certutil:
On macOS:
brew install nss
On Ubuntu:
sudo apt install libnss3-tools
On Windows:
# Download from Mozilla's archive
# https://ftp.mozilla.org/pub/security/nss/releases/
# Extract and add to PATH
Installation Steps
-
Find your Firefox profile directory:
- macOS:
~/Library/Application Support/Firefox/Profiles/ - Linux:
~/.mozilla/firefox/ - Windows:
%APPDATA%\Mozilla\Firefox\Profiles\
- macOS:
-
Your profile folder will have a name like
xxxxxxxx.default-release -
Run the following command, replacing
[PROFILE_PATH]with your actual profile path:
# macOS/Linux
certutil -A -n "PGP Helper Local Cert" -t "C,," -i ~/.pgp-helper/localhost.pem -d sql:$HOME/[PROFILE_PATH]
# Windows (PowerShell)
certutil -A -n "PGP Helper Local Cert" -t "C,," -i $HOME\.pgp-helper\localhost.pem -d sql:$env:APPDATA\Mozilla\Firefox\Profiles\[PROFILE_PATH]
Verification
- Open Firefox
- Visit
https://localhost:8080/status(or your configured port) - Check that the connection is secure (lock icon in address bar)
- Click the lock icon -> Connection secure -> Certificate is valid
Troubleshooting
If you see "SEC_ERROR_UNKNOWN_ISSUER" after installation:
- Restart Firefox
- Check if the certificate was imported correctly in Certificate Manager
- Verify the certificate path matches your PGP Helper installation
If using multiple Firefox profiles:
- Repeat the installation process for each profile you use
- Check Firefox's
about:profilespage to see all active profiles
Re-installing the app
- You need to delete the trusted cert from Firefox following the