Skip to content

Commit 4523882

Browse files
authored
Update my_script.sh
1 parent cbc7932 commit 4523882

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

my_script.sh

+21-1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,24 @@
33
rm /usr/local/share/ca-certificates/OWASP_ZAP.crt
44
rm /etc/ssl/certs/OWASP_ZAP.pem
55
curl http://localhost:$1/OTHER/core/other/rootcert/ > /usr/local/share/ca-certificates/OWASP_ZAP.crt
6-
update-ca-certificates
6+
update-ca-certificates
7+
8+
#Initialisation of OWASP CA
9+
certname="OWASP CA"
10+
certfile="/etc/ssl/certs/OWASP_ZAP.pem"
11+
12+
#Creation of webdriver profile
13+
firefox -CreateProfile WebDriver
14+
15+
#Copy/Paste of cert.db and key.db
16+
for file in $(find ~/.mozilla/firefox/*.default -name "*.db")
17+
do
18+
cp ${file} ~/.mozilla/firefox/*.WebDriver
19+
done
20+
21+
#AddOWASP certificate to the firefox cert.db in each of the profile
22+
for certDB in $(find ~/.mozilla/firefox -name "cert*.db")
23+
do
24+
certdir=$(dirname ${certDB});
25+
certutil -A -n "${certname}" -t "TCu,Cu,Tu" -i ${certfile} -d sql:${certdir}
26+
done

0 commit comments

Comments
 (0)