Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
RevokeChinaCerts-android
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
many-archive
RevokeChinaCerts-android
Commits
34e57e0a
There was an error fetching the commit references. Please try again later.
Commit
34e57e0a
authored
10 years ago
by
phoeagon
Browse files
Options
Downloads
Patches
Plain Diff
add README
parent
cf8ec8d7
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Linux/README.md
+39
-0
39 additions, 0 deletions
Linux/README.md
with
39 additions
and
0 deletions
Linux/README.md
0 → 100644
+
39
−
0
View file @
34e57e0a
Revoke-China-Certs on Linux
==========================================
## Intro
This tool revokes certain CA certificates for NSS-based applications on Linux,
(most notably, Firefox & Chrome).
On Linux there are multiple libraries for SSL/TLS and each may have its own
certificate store. The
`/etc/ca-certificate.conf`
configures the trusted
Root CAs for OpenSSL (which
`wget`
uses by default). Another widely used
library is NSS by Mozilla, which supports blacklisting a specific intermediate
CA without fiddling with the Root CA.
**This tool is experimental. DO MAKE BACKUPS before you do anything!**
## Usage
First you need to have packages installed to provide
`certutil`
. On Ubuntu it would be:
sudo apt-get install libnss3-tools
Then, use the
`revoke-china-certs.sh`
to do the revocation. For Chrome it would be:
./revoke-china-certs.sh extended $HOME/.pki/nssdb
to revoke trust of CAs within the
*extended*
set. Change
`extended`
to
`all`
or
`base`
or
`restore`
to revoke other sets of certs.
Since Firefox maintains different certificate store for different browser profile (rather
than per Linux user for Chrome), you need to do this for every profile under
`~/.mozilla/firefox`
.
for profile in `ls ~/.mozilla/firefox/*.default`;do
./revoke-china-certs.sh extended $HOME/.mozilla/firefox/$profile
done
## Notes
Deselecting a CA by
`dpkg-reconfigure ca-certificates`
does NOT affect any NSS-based applications.
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment