Skip to content

Instantly share code, notes, and snippets.

@buster95
Forked from idiom/gist:5716494
Created November 26, 2020 22:32
Show Gist options
  • Save buster95/2d670263fcce642f547e91650fb90026 to your computer and use it in GitHub Desktop.
Save buster95/2d670263fcce642f547e91650fb90026 to your computer and use it in GitHub Desktop.
Building Mozilla NSS (Network Security Services) on Windows
1. Download & Install Visual Studio 2010 - Version able to compile C++
2. Download and Install Mozilla build files http://ftp.mozilla.org/pub/mozilla.org/mozilla/libraries/win32/MozillaBuildSetup-Latest.exe
3. Download the latest NSS package from: http://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/
Download the tar with npsr
4. Create a directory C:\src
5. Extract nss to c:\src
So this will end up looking like c:\src\nss-3.15
6. Run the Mozilla build shell: C:\mozilla-build\start-msvc10.bat
7. Create the required env variables
Type: export OS_TARGET="WINNT"
Type: export BUILD_OPT="1"
Type: export HOME="/c/src" (or whatever directory you created above)
8. cd ~ (should bring you into your home directory)
9. Now cd into the nss-3.5\nss
10. type: ls (you should see the file Makefile)
11. type make nss_build_all
This will take a few minutes to build. Go make a coffee
Once it's done you will have a directory dist in the root nss directory c:\src\nss-3.15\dist
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment