mirror of
https://github.com/pomerium/pomerium.git
synced 2025-05-09 15:17:39 +02:00
cryptutil: generate certificates from deriveca (#3992)
This commit is contained in:
parent
00c047b114
commit
d2b732243a
8 changed files with 28 additions and 62 deletions
|
@ -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))
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue