Skip to content
node + mongoose + passport
JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
cert
config
controllers
models
.gitignore
README.md
app.js
config.js
package.json
routes.js

README.md

basic-secure-api

Small basic-auth API over SSL. node + express + mongoose + passport

External

http://expressjs.com
http://passportjs.org
http://mongoosejs.com

How to generate certificates

You can generate the privatekey.pem and certificate.pem files using the following commands

openssl genrsa -out privatekey.pem 1024 
openssl req -new -key privatekey.pem -out certrequest.csr 
openssl x509 -req -in certrequest.csr -signkey privatekey.pem -out certificate.pem
Something went wrong with that request. Please try again.