Comparing version 1.9.2 to 1.9.4
@@ -773,2 +773,5 @@ 'use strict'; | ||
certValues.emailAddress = tmp && tmp[1] || ''; | ||
// DC name | ||
tmp = subject2.match(/\sDC=([^\n].*?)[\n]/); | ||
certValues.dc = tmp && tmp[1] || ''; | ||
} | ||
@@ -797,2 +800,5 @@ | ||
certValues.issuer.commonName = tmp && tmp[1] || ''; | ||
// DC | ||
tmp = issuer2.match(/\sDC=([^\n].*?)[\n]/); | ||
certValues.issuer.dc = tmp && tmp[1] || ''; | ||
} | ||
@@ -828,4 +834,4 @@ | ||
var helper_x, subject, type; | ||
helper_x = content.replace(/(C|L|O|OU|ST|CN)=/g, '\n$1='); | ||
helper_x = preg_match_all('((C|L|O|OU|ST|CN)=[^\n].*)', helper_x); | ||
helper_x = content.replace(/(C|L|O|OU|ST|CN|DC)=/g, '\n$1='); | ||
helper_x = preg_match_all('((C|L|O|OU|ST|CN|DC)=[^\n].*)', helper_x); | ||
for (var p=0; p<helper_x.length; p++) { | ||
@@ -878,2 +884,3 @@ subject = helper_x[p].trim(); | ||
CN: options.commonName || options.CN || 'localhost', | ||
DC: options.dc || options.DC || '', | ||
emailAddress: options.emailAddress | ||
@@ -880,0 +887,0 @@ }; |
@@ -12,3 +12,3 @@ { | ||
"description": "Create private keys and certificates with node.js and io.js", | ||
"version": "1.9.2", | ||
"version": "1.9.4", | ||
"repository": { | ||
@@ -28,6 +28,6 @@ "type": "git", | ||
"devDependencies": { | ||
"grunt": "^0.4.5", | ||
"grunt-contrib-jshint": "^0.11.3", | ||
"grunt-contrib-nodeunit": "^0.4.1", | ||
"nodeunit": "^0.9.1", | ||
"grunt": "^1.0.1", | ||
"grunt-contrib-jshint": "^1.1.0", | ||
"grunt-contrib-nodeunit": "^1.0.0", | ||
"nodeunit": "^0.10.2", | ||
"semantic-release": "^6.3.2", | ||
@@ -42,2 +42,2 @@ "semantic-release-tamia": "^1.0.0" | ||
"release": {} | ||
} | ||
} |
@@ -6,3 +6,3 @@ pem | ||
[![Build Status](https://secure.travis-ci.org/andris9/pem.png)](http://travis-ci.org/andris9/pem) | ||
[![Build Status](https://secure.travis-ci.org/Dexus/pem.png)](http://travis-ci.org/Dexus/pem) | ||
[![npm version](https://badge.fury.io/js/pem.svg)](http://badge.fury.io/js/pem) | ||
@@ -41,3 +41,3 @@ | ||
app.get('/', function(req, res){ | ||
app.get('/', requireAuth, function(req, res){ | ||
res.send('o hai!'); | ||
@@ -239,4 +239,8 @@ }); | ||
### Specialthanks to | ||
- Andris Reinman (@andris9) - Initiator of pem | ||
## License | ||
**MIT** |
@@ -104,3 +104,4 @@ 'use strict'; | ||
commonName: 'www.node.ee', | ||
emailAddress: 'andris@node.ee' | ||
emailAddress: 'andris@node.ee', | ||
dc: '' | ||
}; | ||
@@ -227,3 +228,4 @@ | ||
commonName: 'localhost', | ||
emailAddress: '' | ||
emailAddress: '', | ||
dc: '' | ||
}); | ||
@@ -245,3 +247,4 @@ test.ok(fs.readdirSync('./tmp').length === 0); | ||
commonName: 'www.node.ee', | ||
emailAddress: 'andris@node.ee' | ||
emailAddress: 'andris@node.ee', | ||
dc: '' | ||
}; | ||
@@ -285,3 +288,4 @@ pem.createCSR(Object.create(certInfo), function(error, data) { | ||
organizationUnit: '', | ||
commonName: 'localhost' | ||
commonName: 'localhost', | ||
dc: '' | ||
}, | ||
@@ -294,3 +298,4 @@ country: '', | ||
commonName: 'localhost', | ||
emailAddress: '' | ||
emailAddress: '', | ||
dc: '' | ||
}); | ||
@@ -311,3 +316,4 @@ test.ok(fs.readdirSync('./tmp').length === 0); | ||
organizationUnit: 'test', | ||
commonName: 'www.node.ee' | ||
commonName: 'www.node.ee', | ||
dc: '' | ||
}, | ||
@@ -320,3 +326,4 @@ country: 'EE', | ||
commonName: 'www.node.ee', | ||
emailAddress: 'andris@node.ee' | ||
emailAddress: 'andris@node.ee', | ||
dc: '' | ||
}; | ||
@@ -323,0 +330,0 @@ pem.createCertificate(Object.create(certInfo), function(error, data) { |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Potential vulnerability
Supply chain riskInitial human review suggests the presence of a vulnerability in this package. It is pending further analysis and confirmation.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
75719
15
1617
244
3