Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

In this public directory you need to create a copy of the existing server directory. Call it local_server and configure it so svn will ignore it (we want this to remain locally on your machine only).

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 (/zend_framework/public/local_server/certs).
  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 -in yourcert.pem -out 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/local_server/certs folder.

Configure auth.json

Edit /zend_framework/public/local_server/auth_yours.json and rename this file to auth_me.json or whatever you like:

Code Block
{
	"what_do_I_do_with_this_file": "Rename this file to auth_me.json or whatever you like then reference it on the command line with the '-a' parameter",
	"keyFile": ".pem file containing your key",
	"certsFile": ".pem file containing your cert with password removed",
	"caFile": "certs/mitCA.pem"
}

Install Required Node Module Dependencies

  1. Navigate to /zend_framework/public/server/
  2. Execute npm (node package manager) which will read the package.json file and install the listed dependencies. 
    1. npm install

Testing The Local Server

  1. Navigate to zend_framework/public/local_server
  2. Start the server via command: node bin/mitserv.js -a auth_me.json

Possible Issues

  • Issue:
    • Proxy starting but never returning
  • Fix:
    • Make sure you're connecting using either the MIT N or MIT SECURE N wireless network
  • Issue: 
  • Fix: The Apache server needs to include the username
  • Issue:
    • Error: EBADF, Bad file descriptor './certs/hij1nx.pem'
  • Fix:
    • The certs are missing and/or misconfigured. See the section on installing certificates.