PSM:EV Testing Easy Version: Difference between revisions

From MozillaWiki
Jump to navigation Jump to search
Line 20: Line 20:
= Details =
= Details =


== Test version ==
== Download Debug Version of Firefox==
You can download the test version for various operating systems from https://kuix.de/mozilla/browser-ca-ev-testing/. After downloading, extract and run this experimental browser. The application file is called "Minefield", and when you start this experimental browser it should say "Minefield" as the leftmost pull-down menu (instead of Firefox).
 
To download a debug version of Firefox:
# Browse to ftp://ftp.mozilla.org/pub/firefox/tinderbox-builds/
# Scroll down to mozilla-release-<platform>-debug and select the folder that matches the platform you are working on. Make sure you select a folder whose name ends in "debug".
# Download any of the recent builds in the list.
#* [https://support.mozilla.org/en-US/kb/install-firefox-linux Linux Platform] - use the .tar.bz2 file.
#* [https://support.mozilla.org/en-US/kb/install-firefox-mac Mac Platofrm] - use the .dmg file.
#* [https://support.mozilla.org/en-US/kb/install-firefox-windows Windows Platform] - use the installer.exe file.
# After downloading, extract and run this debug browser, which will be called FirefoxNightlyDebug.


== Environment variable ==
== Environment variable ==

Revision as of 18:01, 24 September 2013

This page is for Certificate Authorities (CAs) who request to have a root certificate enabled for Extended Validation (EV) treatment, and need to test that their CA hierarchy is ready for EV treatment.

To request that your root certificate be included in NSS and enabled for EV treatment, start with the Mozilla CA Certificate Policy and the How to Apply guidelines.

This page explains how you can test that your certificates and OCSP infrastructure are working correctly according to the expectations of Mozilla, Firefox, and the NSS library; and conforms to the SSL protocol specifications (as interpreted by Mozilla/NSS software.)

Overview

To perform this test you will:

  • Use a debug version of Firefox that has been modified to allow for EV testing
  • Set an environment variable that is effective when you execute Firefox
  • Import your own CA root certificate into the Firefox browser
  • Find a directory on your system that contains the Firefox browser's configuration files
  • Prepare a special configuration file that instructs the browser to treat your certificates as EV verified
  • Prepare a test server that uses a matching certificate and sends all required intermediate certificates
  • Make sure that your OCSP server is configured correctly, in particular, the signing certificate used by your OCSP server is conforming to specifications
  • Test the above until you get a successful test result

Details

Download Debug Version of Firefox

To download a debug version of Firefox:

  1. Browse to ftp://ftp.mozilla.org/pub/firefox/tinderbox-builds/
  2. Scroll down to mozilla-release-<platform>-debug and select the folder that matches the platform you are working on. Make sure you select a folder whose name ends in "debug".
  3. Download any of the recent builds in the list.
  4. After downloading, extract and run this debug browser, which will be called FirefoxNightlyDebug.

Environment variable

You must set the following environment variable. It must be effective when the browser software runs:

ENABLE_TEST_EV_ROOTS_FILE=1 

Import your root CA

You should be able to use the browser's menus and preferences to find the certificate manager, import it as a new Certificate Authority, and set the necessary trust flags (include trust for web sites).

Profile / Configuration directory

You will use public Internet resources to learn about the location of Firefox configuration files on your test computer. (e.g. on a GNU/Linux system this might be in /home/$USER/.mozilla/firefox/*default, on Mac OS X ~/Library/Application Support/Firefox/Profiles/*.default) The directory contains files named bookmarks.html and prefs.js, this information might help you in locating the correct directory.

Note: on Mac OS X Mountain Lion the Library folder is hidden. To find it, go into Finder, click on the "Go" pull-down menu while holding the Option key and select "Library." From Terminal the following command will make the hidden Library folder visible: chflags nohidden ~/Library. To hide the Library folder again type the following command: chflags hidden ~/Library

Enable your root for EV

Inside the directory you have identified in the previous step, you will create a new ASCII test file, with filename test_ev_roots.txt You will create appropriate lines that will enable your root certificate for EV. Technical information can be found in page PSM:EV_Testing

The tricky technical part is producing an ASCII-encoded representation of the DER encoding of your certificate issuer name and its serial number.

We are willing to help you produce those technical representation. If you have started the formal process to request being added to the Mozilla root store, and have attached your root to a bugzilla bug, you may ask us to produce it for you.

Testing

Once you have the above preparation steps done, open the "Minefield" test browser and browse to the web page of your test server. If you have done everything correctly, and your OCSP infrastructure meets the expectations, you will see the green EV identity bar.

Attach a screen shot to the bug that shows the green EV identity bar for your web page in the "Minefield" test browser.

Not Getting EV Treatment?