Handle json and 2 year certs #53

Merged
bmartin5692 merged 5 commits from ozmo950 into master 2019-10-06 22:48:50 +02:00
5 changed files with 2 additions and 2 deletions
Showing only changes of commit e873e22fd3 - Show all commits

Binary file not shown.

Binary file not shown.

Binary file not shown.

View file

@ -95,7 +95,7 @@ func make_CA(outCertDirectory string) {
Organization: []string{"Bumper"},
},
NotBefore: time.Now(),
NotAfter: time.Now().AddDate(10, 0, 0),
NotAfter: time.Now().AddDate(2, 0, 0),
SubjectKeyId: bigIntHash(priv.N),
AuthorityKeyId: bigIntHash(priv.N),
KeyUsage: x509.KeyUsageCertSign | x509.KeyUsageCRLSign,
@ -198,7 +198,7 @@ func signCert(outCertDirectory string, inBumperSan string) {
SubjectKeyId: bigIntHash(privateKey.N),
AuthorityKeyId: ca.RawSubject,
NotBefore: time.Now(),
NotAfter: time.Now().AddDate(10, 0, 0),
NotAfter: time.Now().AddDate(2, 0, 0),
IsCA: false,
BasicConstraintsValid: true,
ExtKeyUsage: []x509.ExtKeyUsage{x509.ExtKeyUsageClientAuth, x509.ExtKeyUsageServerAuth},