You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 9 Next »

Overview

Currently we are using node.js 0.4.9 and Openssl. You may need to download and install openssl.

Installation of Required Software 

  • Download the node.js 0.4.9 tar file, unpack it. Running a newer version?  Here is how to downgrade.
  • Navigate to the download folder.
    • ./configure
    • make
    • sudo make install

Certificate Installation

These certificates are used to proxy to the test server using your credentials.

  1. 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).
  2. Using your terminal, CD to the cert subdirectory.
  3. Create a .pem file: openssl pkcs12 -nodes -in yourcert.p12 -out yourcert.pem
  4. Now remove the password from your .pem file this way: openssl rsa -out yourcert.pem -in yourcertNoPassword.pem
  5. From the Authorities tab in FF, export and save the "MIT Certification Authority..." certification to a file name mitCA.pem in /zend_framework/public/server/certs folder.
  6. {{put the correct paths to your certs in the proxy.js file (roughly lines 21-23 / see example below).}}Proxy.js example:
    var KEY = fs.readFileSync('./certs/yourcert.pem').toString();
    var CERT = fs.readFileSync('./certs/yourcertNoPassword.pem').toString();
    var CA = fs.readFileSync('./certs/mitCA.pem').toString();

Testing The Local Server

  1. Navigate to zend_framework/public/server
  2. Start the server via command ./bin/mitserv

Possible Issues

  • Issue: 
  • Fix: The Apache server needs to include the username
  • No labels