Files
mbase/pkg/auxx509/x509cert_test.go
T
Олег Бородин 25365aef77 init import
2026-05-24 11:02:51 +02:00

19 lines
314 B
Go

/*
* Copyright 2026 Oleg Borodin <onborodin@gmail.com>
*/
package auxx509
import (
"fmt"
"testing"
"github.com/stretchr/testify/require"
)
func TestCert(t *testing.T) {
caCert, caKey, err := CreateSelfSignedCert("test1")
require.NoError(t, err)
fmt.Println(string(caCert))
fmt.Println(string(caKey))
}