19 lines
349 B
Go
19 lines
349 B
Go
package cert
|
|
|
|
import (
|
|
"crypto/x509"
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/require"
|
|
"gitlab.com/urkob/go-cert-gen/pkg/client"
|
|
)
|
|
|
|
func Test_newClientCert(t *testing.T) {
|
|
var config *client.ClientCertConfig
|
|
var rootCA *x509.Certificate
|
|
var rootKeyPEM []byte
|
|
|
|
_, _, err := newClientCert(config, rootCA, rootKeyPEM)
|
|
require.NoError(t, err)
|
|
}
|