Skip to content

Commit

Permalink
fix: certificate serial
Browse files Browse the repository at this point in the history
  • Loading branch information
mkg20001 committed Oct 30, 2017
1 parent 8cb15d9 commit debdaed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/src/ca/forge.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ module.exports = class ForgeCA {
if (cn != cn_req) return cb(new Error("Rejecting request: commonName (" + cn + ") and requested commonName (" + cn_req + ") do not match!"))
const cert = pki.createCertificate()

cert.serialNumber = "03"
cert.serialNumber = "0" + new Date().getTime().toString()

cert.validity.notBefore = new Date()
cert.validity.notAfter = new Date()
Expand Down

0 comments on commit debdaed

Please sign in to comment.