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?

...

...

...

...

...

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

...

  1. yourcert.pem

...

  1. -out

...

  1. yourcertNoPassword.pem

...

  1. From the Authorities tab in FF, export and save the "MIT Certification Authority..."

...

  1. certification

...

  1. to

...

  1. a

...

  1. file

...

  1. name

...

  1. mitCA.pem

...

  1. in

...

  1. /zend_framework/public/server

...

  1. /certs

...

  1. folder

...

  1. .
  2.  If using the older proxy only, {{put

...

  1. the

...

  1. correct

...

  1. paths

...

  1. to

...

  1. your

...

  1. certs

...

  1. in

...

  1. the

...

  1. proxy.js

...

  1. file

...

  1. (roughly

...

  1. lines

...

  1. 21-23

...

  1. /

...

  1. see

...

  1. example

...

  1. below).}}Proxy.js

...

  1. example:

...

  1. Code Block

...

  1. 
    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/

...

  1. Execute

...

  1. npm

...

  1. (node

...

  1. package

...

  1. manager)

...

  1. which

...

  1. will

...

  1. read

...

  1. the

...

  1. package.json

...

  1. file

...

  1. and

...

  1. install

...

  1. the

...

  1. listed

...

  1. dependencies.

...

  1.  
    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"
}{code}

h3. New Method:

Edit 

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

h2. Testing The Local Server

h3. Old Method:

# Navigate to 

Testing The Local Server

Old Method:

  1. Navigate to zend_framework/public/server

...

  1. Start

...

  1. the

...

  1. server

...

  1. via

...

  1. command

...

  1. ./bin/mitserv

...

New

...

Method:

...

  1. Navigate

...

  1. to

...

  1. zend_framework/public/server

...

  1. Start

...

  1. the

...

  1. server

...

  1. via

...

  1. command

...

  1. node

...

  1. bin/mitserv.js

...

  1. -a

...

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