Currently we are using node.js 0.4.9 and Openssl. YOu will need to download and install openssl. Then download the node.js 0.4.9 tar file, unpack it. Then you need to run XXXX
Certificates
- 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
Save the MIT.ca file to your certs folder.
put the correct paths to your certs in the proxy.js file (roughly lines 21-23).
Possible Issues
- Issue: Seeing GET http://localhost:8080/rest/v1/user/auth
403 (Forbidden)
- With body
Unknown macro: { error}
- With body
- Fix: The Apache server needs to include the username