Skip to content
Browse files

use my fork of pem for now to add subjectAltNames to the test certifi…

…cate
  • Loading branch information...
1 parent 5e3b896 commit 36d4f5b4526289af65b6fc702e80292a3d10dc1e @dodo dodo committed Jan 7, 2014
Showing with 7 additions and 2 deletions.
  1. +1 −1 package.json
  2. +6 −1 test/tls-test.js
View
2 package.json
@@ -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",
View
7 test/tls-test.js
@@ -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

0 comments on commit 36d4f5b

Please sign in to comment.
Something went wrong with that request. Please try again.