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
6cb99e7b
There was an error fetching the commit references. Please try again later.
Commit
6cb99e7b
authored
10 years ago
by
phoeagon
Browse files
Options
Downloads
Patches
Plain Diff
add README
parent
c30fc171
No related branches found
No related tags found
Loading
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Linux/README.md
+55
-0
55 additions, 0 deletions
Linux/README.md
with
55 additions
and
0 deletions
Linux/README.md
0 → 100644
+
55
−
0
View file @
6cb99e7b
Revoke-China-Certs for Ubuntu
=========================================
## Intro
This tool disables certain CA certificates on Ubuntu.
It's tested on Ubuntu 12.04+ (should also work with Debian/LinuxMint).
## Proceed with predefined blacklist
git clone [GIT_REPO]
cd RevokeChinaCerts/Linux/
sudo pip install .
# Make a backup
cp /etc/ca-certificates.conf /etc/ca-certificates.conf.bak
# Reconfigure the CA list. [Type] can be ALL, BASE, EXTENDED
cat /etc/ca-certificates.conf | revoke-china-certs revoke - ./revoke-china-certs.[TYPE].conf | \
tee /tmp/ca-certificates.conf
# Replace CA list
sudo mv /tmp/ca-certificates.conf /etc/ca-certificates.conf
However, any future updates from package
`ca-certificates`
may override this.
To mitigate the problem, use
`cron`
to run the fix routinely.
# Choose the type you want
sudo cp ./revoke-china-certs.[TYPE].conf /etc/revoke-china-certs.conf
Then use cron to run the following command routinely (as root):
(revoke-china-certs revoke >/tmp/ca-certificates.conf; cp /tmp/ca-certificates.conf /etc/ca-certificates.conf)
You can also add the above command to
`.bashrc`
or whatever script that is routinely invoked.
## Generate custom blacklist
To generate a custom blacklist, use
`pip`
to install the package as described above. Then:
revoke-china-certs generate [certificates to revoke]
For example:
revoke-china-certs generate ~/RevokeChinaCerts/Windows/Online/* | tee /tmp/revoke.txt
Then, the file '/tmp/revoke.txt' is in the same format as 'revoke-china-certs.ALL.conf' and
can be used the same way.
## Notes
As mentioned above, updates from the package
`ca-certificates`
may very well
install a new certificates from, say, WoSign, but
*RevokeChinaCerts*
is not
able to prevent that
*ahead of time*
.
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