Skip to content
Snippets Groups Projects
Commit 43fe115f authored by Damyan Mitev's avatar Damyan Mitev :beach:
Browse files

Fix stupid bug

parent 971cafe9
Branches SSA-4-sign_client_cert_with_server_cert
Tags
1 merge request!7Ssa 4 sign client cert with server cert
......@@ -104,7 +104,7 @@ func generateCertificate(publicKeyBytes []byte, caCertFilePath string, caPrivate
NotBefore: notBeforeTime,
NotAfter: notAfterTime,
KeyUsage: x509.KeyUsageDigitalSignature | x509.KeyUsageKeyEncipherment | x509.KeyUsageDataEncipherment | x509.KeyUsageCertSign | x509.KeyUsageCRLSign,
ExtKeyUsage: []x509.ExtKeyUsage{x509.ExtKeyUsageServerAuth | x509.ExtKeyUsageEmailProtection | x509.ExtKeyUsageTimeStamping},
ExtKeyUsage: []x509.ExtKeyUsage{x509.ExtKeyUsageServerAuth, x509.ExtKeyUsageEmailProtection, x509.ExtKeyUsageTimeStamping},
BasicConstraintsValid: true,
IsCA: true,
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment