Handle SSL certificate issue in Selenium / firefox

Selenium creates a new and clean profile each time it runs a test, so it
won't keep any cookies of the previous session and it wont use any
browser plug-in however you can force selenium to use your own profile.

Steps
1. Close all instances of firefox browser.
2. Create a new firefox profile : Go to Run and type firefox -p and
press OK . This will open a dialog bod where you create new firefox
profile, have a name "xxx" and save it in C: drive.
3. Install all plug-ins in this profile ; For SSL certificate issue install SSL security bypass

As soon as your tests redirect to an HTTPS URL on the same host, where
your SSL certificate is self-signed, things go wrong. As Selenium
effectively runs Firefox with a new profile every time, you potentially
lose any certificate exceptions you might accept.One technique we
were using was to create a custom profile; run Firefox using that
profile; browse to the HTTPS URL and accept the exception into that
profile; then close the profile.

Steps to create a Firefox profile:1. Close down any running Firefox instances.2.
Start Firefox (the one you're going to run your tests with) with the
profile manager: firefox –ProfileManager using command prompt.3.
Create a new profile. You'll be prompted to choose a directory for the
profile. Put it somewhere inside the project where you're writing the
tests.4. Select the profile and run Firefox using it.5. Browse to the HTTPS URL (with self-signed certificate) you're going to be testing against.6. Accept the self-signed certificate when prompted. This creates an exception for it in the profile.7. Close the browser.8. Go to the Firefox profile directory.9.
When you run your Selenium server, pass a -firefoxProfileTemplate
/path/to/profile/dir argument to it. This tells Selenium to use your
partial profile (with certificate exceptions) as a basis for minting its
new profile. So you get the certificate exceptions, but without any of
the other clutter you would get if you used a whole profile.

Good to know about Self-signed certificates do have their advantages. They are free to generate and are fine for use on intranet and development servers where the only people expected to trust the server are internal personnel such as company employees. However, they should never be deployed on commercial websites that the general public are expected to trust.Follow the link for Selenium Certification: Selenium Training| Selenium Training in Chennai