mirror of
https://github.com/pomerium/pomerium.git
synced 2025-07-23 19:49:13 +02:00
cryptutil: generate certificates from deriveca
This commit is contained in:
parent
b13afc7b0c
commit
91fca06397
8 changed files with 28 additions and 62 deletions
|
@ -46,7 +46,7 @@ func TestBuildSubjectNameIndication(t *testing.T) {
|
|||
}
|
||||
|
||||
func TestValidateCertificate(t *testing.T) {
|
||||
cert, err := cryptutil.GenerateSelfSignedCertificate("example.com", func(tpl *x509.Certificate) {
|
||||
cert, err := cryptutil.GenerateCertificate(nil, "example.com", func(tpl *x509.Certificate) {
|
||||
// set the must staple flag on the cert
|
||||
tpl.ExtraExtensions = append(tpl.ExtraExtensions, pkix.Extension{
|
||||
Id: oidMustStaple,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue