Skip to content

Commit

Permalink
use my fork of pem for now to add subjectAltNames to the test certifi…
Browse files Browse the repository at this point in the history
…cate
  • Loading branch information
dodo committed Jan 7, 2014
1 parent 5e3b896 commit 36d4f5b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
},
"devDependencies": {
"mocha": ">=1.0.0",
"pem": ">=1.2.2",
"pem": "https://github.com/dodo/pem/tarball/altNames",
"grunt": "~0.4.1",
"grunt-contrib-jshint": "~0.6.0",
"grunt-mocha-cli": "~1.3.0",
Expand Down
7 changes: 6 additions & 1 deletion test/tls-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,12 @@ var user = {
var tls

before(function (done) {
pem.createCertificate({ days: 1, selfSigned: true }, function (err, keys) {
var cert_params = {
days: 1,
selfSigned: true,
altNames: ["DNS = localhost", "IP = 127.0.0.1"],
}
pem.createCertificate(cert_params, function (err, keys) {
if (err) return done(err)
tls = { key: keys.serviceKey + '\n', cert: keys.certificate + '\n' }
tls.ca = tls.cert
Expand Down

0 comments on commit 36d4f5b

Please sign in to comment.