Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin
Table of Contents

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 to make and install node.
    • ./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

...

  1. Certificates

...

  1. and

...

  1. click

...

  1. on

...

  1. your

...

  1. certificate

...

  1. and

...

  1. click

...

  1. the

...

  1. Backup

...

  1. button.

...

  1. In

...

  1. the

...

  1. Save

...

  1. Dialog

...

  1. box,

...

  1. save

...

  1. your

...

  1. certificate

...

  1. as

...

  1. a

...

  1. pks12

...

  1. (.p12)

...

  1. file

...

  1. in

...

  1. your

...

  1. server

...

  1. directory

...

  1. (neatest

...

  1. if

...

  1. you

...

  1. save

...

  1. it

...

  1. in

...

  1. a

...

  1. cert

...

  1. subdirectory).

...

  1. Using

...

  1. your

...

  1. terminal,

...

  1. CD

...

  1. to

...

  1. the

...

  1. cert

...

  1. subdirectory.

...

  1. Create

...

  1. a

...

  1. .pem

...

  1. file:

...

  1. openssl

...

  1. pkcs12

...

  1. -nodes

...

  1. -in

...

  1. yourcert.p12

...

  1. -out

...

  1. yourcert.pem

...

  1. Now

...

  1. remove

...

  1. the

...

  1. password

...

  1. from

...

  1. your

...

  1. .pem

...

  1. file

...

  1. this

...

  1. way:

...

  1. openssl

...

  1. rsa

...

  1. -

...

  1. in yourcert.pem

...

  1. -

...

  1. out yourcertNoPassword.pem

...

  1. 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.
  2.  If using the older proxy only, {{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

  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

Configure auth.json

Old Method:

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"
}

New Method:

Edit /zend_framework/public/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"
}

Testing The Local Server

Old Method:

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

New Method:

  1. Navigate to zend_framework/public/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

...

    • 403

...

    • (Forbidden)

...

    • With body content including: "SyntaxError:

...

    • Unexpected

...

    • token

...

    • ILLEGAL"

...

  • 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.