Skip to content

Commit

Permalink
fix(https): ensure certificate files can be accessed from any working…
Browse files Browse the repository at this point in the history
… directory
  • Loading branch information
petebacondarwin committed Mar 20, 2013
1 parent 3abe780 commit 70b5d45
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/server.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
var fs = require('fs');
var http = require('http');
var https = require('https');
var privateKey = fs.readFileSync('cert/privatekey.pem').toString();
var certificate = fs.readFileSync('cert/certificate.pem').toString();
var privateKey = fs.readFileSync(__dirname + '/cert/privatekey.pem').toString();
var certificate = fs.readFileSync(__dirname + '/cert/certificate.pem').toString();
var credentials = {key: privateKey, cert: certificate};

var express = require('express');
Expand Down

0 comments on commit 70b5d45

Please sign in to comment.