File tree 1 file changed +21
-1
lines changed
1 file changed +21
-1
lines changed Original file line number Diff line number Diff line change 3
3
rm /usr/local/share/ca-certificates/OWASP_ZAP.crt
4
4
rm /etc/ssl/certs/OWASP_ZAP.pem
5
5
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
You can’t perform that action at this time.
0 commit comments