misc: small fix or general refactoring i did not bother commenting

This commit is contained in:
evilsocket 2019-02-21 13:51:30 +01:00
commit 99a60364cd
No known key found for this signature in database
GPG key ID: 1564D7F30393A456
3 changed files with 3 additions and 8 deletions

View file

@ -103,7 +103,7 @@ func CreateCertificate(cfg CertConfig) (error, *rsa.PrivateKey, []byte) {
KeyUsage: x509.KeyUsageKeyEncipherment | x509.KeyUsageDigitalSignature | x509.KeyUsageCertSign,
ExtKeyUsage: []x509.ExtKeyUsage{x509.ExtKeyUsageClientAuth, x509.ExtKeyUsageServerAuth},
BasicConstraintsValid: true,
IsCA: true,
IsCA: true,
}
cert, err := x509.CreateCertificate(rand.Reader, &template, &template, &priv.PublicKey, priv)