When you need to download a certificate from a site you have 2 options:
1. Hit F12 in Browser and go to Security Tab -> View Certificate and download it from there.
(this option doesn't seem to work every time, because the option to download is disabled)
or,
2. Use openssl
- download and istall openssl (http://gnuwin32.sourceforge.net/packages/openssl.htm)
- add path to environment variables (PATH=C:\Program Files (x86)\GnuWin32\bin)
- open Command Prompt window and run:
openssl s_client -connect HOST:PORT > "C:\Users\...\mycert.cert"
The mycert.cert file will be saved in the specified location.
Then if you want to import this certificate in java trusted store, run the following command:
"<JAVA_HOME>\bin\keytool" -import -v -trustcacerts -alias server-alias -file "C:\Users\...\mycert.cert" -keystore cacerts.jks -keypass changeit -storepass changeit
Note: to find JAVA_HOME run:
echo $JAVA_HOME
on Linux or
echo %JAVA_HOME%
on Windows
Source: https://serverfault.com/questions/139728/how-to-download-the-ssl-certificate-from-a-website
https://stackoverflow.com/questions/2893819/accept-servers-self-signed-ssl-certificate-in-java-client
Showing posts with label Chrome. Show all posts
Showing posts with label Chrome. Show all posts
Thursday, August 17, 2017
Saturday, December 8, 2012
How to execute Compound class names using WebDriver
If you have a Compound class and you want to do something like this:
IWebElement elem = Browser.Driver.FindElement(By.ClassName("name1 name2 name 3"));
you will get an error like:
"Compound class names are not supported. Consider searching for one class name and filtering the results."
The solution:
Use CssSelector, and put "." in front of each name, like this:
IWebElement elem = Browser.Driver.FindElement(By.CssSelector(".name1.name2.name 3"));
IWebElement elem = Browser.Driver.FindElement(By.ClassName("name1 name2 name 3"));
you will get an error like:
"Compound class names are not supported. Consider searching for one class name and filtering the results."
The solution:
Use CssSelector, and put "." in front of each name, like this:
IWebElement elem = Browser.Driver.FindElement(By.CssSelector(".name1.name2.name 3"));
Remove utorrent toolbar from Chrome
If you have this annoying problem here is how to fix it:
1. Go to C:\Users\[Username]\AppData\Local\ and remove CRE and Conduit directories.
2. Start -> regedit -> search for '\AppData\Local\CRE' and remove any related Extensions.
1. Go to C:\Users\[Username]\AppData\Local\ and remove CRE and Conduit directories.
2. Start -> regedit -> search for '\AppData\Local\CRE' and remove any related Extensions.
Wednesday, November 28, 2012
For Chrome Devtools
Here are some useful tips for Chrome Devtools.
I got this from one of my coleagues. Thanks Calin :)
http://anti-code.com/devtools-cheatsheet/
Have fun!
I got this from one of my coleagues. Thanks Calin :)
http://anti-code.com/devtools-cheatsheet/
Have fun!
Monday, June 13, 2011
Web Testing Add-ons from Firefox and Chrome
There are many useful add-ons for Web Applications Testing. Here are a few from Firefox and Google Chrome.
Firefox:
Web Application Security Penetration Testing
- https://addons.mozilla.org/en-US/firefox/collections/adammuntner/webappsec/
Chrome:
Let's make the web faster
- http://code.google.com/speed/tools.html
Have fun!
Firefox:
Web Application Security Penetration Testing
- https://addons.mozilla.org/en-US/firefox/collections/adammuntner/webappsec/
Chrome:
Let's make the web faster
- http://code.google.com/speed/tools.html
Have fun!
Subscribe to:
Posts (Atom)