...
- Go to Firefox/Preferences/Advanced/Encryption/View Certificates and click on your certificate and click the Backup button. In the Save Dialog box, save your certificate as a pks12 (.p12) file in your server directory (neatest if you save it in a cert subdirectory).
- Using your terminal, CD to the cert subdirectory.
- Create a .pem file: openssl pkcs12 -nodes -in yourcert.p12 -out yourcert.pem
Now remove the password from your .pem file this way: openssl rsa -out yourcert.pem -in yourcertNoPassword.pem
From the Authorities tab in FF, e
xport and save the "MIT Certification Authority..." certification to a file name mitCA.pem in /zend_framework/public/server
/certs folder
.
- {{put the correct paths to your certs in the proxy.js file (roughly lines 21-23 / see example below).}}Proxy.js example:
Code Block var KEY = fs.readFileSync('./certs/yourcert.pem').toString(); var CERT = fs.readFileSync('./certs/yourcertNoPassword.pem').toString(); var CA = fs.readFileSync('./certs/mitCA.pem').toString();
Install Required Node Module Dependencies
- Navigate to /zend_framework/public/server/
- Execute npm (node package manager) which will read the package.json file and install the listed dependencies.
- npm install
Create auth.json
Create /zend_framework/public/server/auth.json with your username and password in the following format, substituting your actual credentials:
Code Block |
---|
{
"username": "jresig",
"password": "jQuery2006"
} |
Testing The Local Server
- Navigate to zend_framework/public/server
- Start the server via command ./bin/mitserv
...