Skip to content

Commit

Permalink
version 0.2 release
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Leister committed Feb 10, 2017
1 parent c44d38c commit 260fd2a
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
10 changes: 5 additions & 5 deletions config.default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
###

server:
ip: 192.168.42.53
ip: 0.0.0.0
port: 8081


Expand Down Expand Up @@ -31,9 +31,9 @@ ca:
ocsp:
passphrase: yyyy
country: DE
commonname: ocsp.adito.local
commonname: ocsp.adito.local:2560
crl:
url: http://crl.adito.local/crl.pem
url: http://crl.adito.local:2561/crl.pem


###
Expand All @@ -44,7 +44,7 @@ ca:
###

ocsp:
ip: 192.168.42.53
ip: 0.0.0.0
port: 2560


Expand All @@ -54,5 +54,5 @@ ocsp:
###

crl:
ip: 192.168.42.53
ip: 0.0.0.0
port: 2561
1 change: 1 addition & 0 deletions genpki.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ var createFileStructure = function() {
openssl_intermediate = openssl_intermediate.replace(/{organization}/g, global.config.ca.intermediate.organization);
openssl_intermediate = openssl_intermediate.replace(/{commonname}/g, global.config.ca.intermediate.commonname);
openssl_intermediate = openssl_intermediate.replace(/{ocspurl}/g, 'http://' + global.config.ca.intermediate.ocsp.commonname);
openssl_intermediate = openssl_intermediate.replace(/{crlurl}/g, global.config.ca.intermediate.crl.url);

fs.writeFileSync(pkidir + 'intermediate/openssl.cnf', openssl_intermediate);

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "nodepki",
"version": "0.1.0",
"version": "0.2.0",
"description": "NodeJS-based PKI server for x509 certificate management.",
"author": "Thomas Leister <thomas.leister@mailbox.org>",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion pkitemplate/openssl_intermediate.cnf.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ subjectKeyIdentifier = hash
authorityKeyIdentifier = keyid,issuer:always
keyUsage = critical, digitalSignature, keyEncipherment
extendedKeyUsage = serverAuth
crlDistributionPoints = URI:http://example.com/intermediate.crl.pem
crlDistributionPoints = URI:{crlurl}
authorityInfoAccess = OCSP;URI:{ocspurl}


Expand Down

0 comments on commit 260fd2a

Please sign in to comment.