Skeleton contracts / contracts (pull_request) Blocked by required conditions
Smoke/security/grade4/persistence/failover пройдены; REPORT и DEFENSE.
19 lines
374 B
Go
19 lines
374 B
Go
package tlsconfig
|
|
|
|
import (
|
|
"crypto/tls"
|
|
"testing"
|
|
)
|
|
|
|
func TestBrokerClientPEMChain(t *testing.T) {
|
|
cert, err := tls.LoadX509KeyPair(
|
|
"../../secrets/broker-api-client.crt",
|
|
"../../secrets/broker-api-client.key",
|
|
)
|
|
if err != nil {
|
|
t.Skip(err)
|
|
}
|
|
if len(cert.Certificate) < 2 {
|
|
t.Fatalf("want chained client cert, got %d DER entries", len(cert.Certificate))
|
|
}
|
|
} |