feat: test coverage more than 80%
This commit is contained in:
@@ -34,21 +34,3 @@ var (
|
||||
extKeyUsage = []x509.ExtKeyUsage{x509.ExtKeyUsageClientAuth, x509.ExtKeyUsageServerAuth}
|
||||
keyUsage = x509.KeyUsageDigitalSignature
|
||||
)
|
||||
|
||||
func NewDefaultConfig() *ClientCertConfig {
|
||||
return &ClientCertConfig{
|
||||
Serial: big.NewInt(12321),
|
||||
Subject: Subject{
|
||||
Organization: "",
|
||||
Country: "",
|
||||
Province: "",
|
||||
Locality: "",
|
||||
StreetAddress: "",
|
||||
PostalCode: "",
|
||||
},
|
||||
Duration: time.Duration(time.Hour * 24 * 365),
|
||||
SubjectKeyId: subjectKeyId,
|
||||
ExtKeyUsage: extKeyUsage,
|
||||
KeyUsage: keyUsage,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user