cryptutil: generate certificates from deriveca (#3992)

This commit is contained in:
Caleb Doxsey 2023-02-23 08:38:56 -07:00 committed by GitHub
parent 00c047b114
commit d2b732243a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 28 additions and 62 deletions

View file

@ -8,7 +8,7 @@ import (
)
func TestGetCertificateServerNames(t *testing.T) {
cert, err := GenerateSelfSignedCertificate("www.example.com")
cert, err := GenerateCertificate(nil, "www.example.com")
require.NoError(t, err)
assert.Equal(t, []string{"www.example.com"}, GetCertificateServerNames(cert))
}