Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
michael@0 | 1 | #!/bin/sh |
michael@0 | 2 | # |
michael@0 | 3 | # This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 4 | # License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 5 | # file, You can obtain one at http://mozilla.org/MPL/2.0/. |
michael@0 | 6 | |
michael@0 | 7 | mkdir tmp |
michael@0 | 8 | cd tmp |
michael@0 | 9 | dd if=/dev/urandom bs=512 count=1 of=noise |
michael@0 | 10 | echo "" > pwfile |
michael@0 | 11 | |
michael@0 | 12 | certutil -d . -N -f pwfile |
michael@0 | 13 | |
michael@0 | 14 | certutil -S -z noise -g 1024 -d . -n ca -s "CN=NSS Test CA,O=BOGUS NSS,L=Mountain View,ST=California,C=US" -t C,C,C -x -m 1 -w -1 -v 600 -1 -2 -5 <<CERTSCRIPT |
michael@0 | 15 | 5 |
michael@0 | 16 | 6 |
michael@0 | 17 | 9 |
michael@0 | 18 | n |
michael@0 | 19 | y |
michael@0 | 20 | |
michael@0 | 21 | n |
michael@0 | 22 | 5 |
michael@0 | 23 | 6 |
michael@0 | 24 | 7 |
michael@0 | 25 | 9 |
michael@0 | 26 | n |
michael@0 | 27 | CERTSCRIPT |
michael@0 | 28 | |
michael@0 | 29 | certutil -S -z noise -g 1024 -d . -n u50 -s "CN=TestUser50,E=TestUser50@bogus.com,O=BOGUS NSS,L=Mountain View,ST=California,C=US" -t ,, -c ca -m 50 -v 598 |
michael@0 | 30 | |
michael@0 | 31 | certutil -S -z noise -g 1024 -d . -n u51 -s "CN=TestUser51,E=TestUser51@bogus.com,O=BOGUS NSS,L=Mountain View,ST=California,C=US" -t ,, -c ca -m 51 -v 598 |
michael@0 | 32 | |
michael@0 | 33 | certutil -d . -L -n ca -r > TestCA.ca.cert |
michael@0 | 34 | certutil -d . -L -n u50 -r > TestUser50.cert |
michael@0 | 35 | certutil -d . -L -n u51 -r > TestUser51.cert |
michael@0 | 36 | |
michael@0 | 37 | echo "Created multiple files in subdirectory tmp: TestCA.ca.cert TestUser50.cert TestUser51.cert" |