2021-09-08 00:00:53 +02:00
|
|
|
package netxlite
|
|
|
|
|
|
|
|
import (
|
|
|
|
"crypto/x509"
|
|
|
|
"testing"
|
|
|
|
)
|
|
|
|
|
|
|
|
func TestPEMCerts(t *testing.T) {
|
2021-09-08 21:19:51 +02:00
|
|
|
t.Run("we can successfully load the bundled certificates", func(t *testing.T) {
|
|
|
|
pool := x509.NewCertPool()
|
|
|
|
if !pool.AppendCertsFromPEM([]byte(pemcerts)) {
|
|
|
|
t.Fatal("cannot load pemcerts")
|
|
|
|
}
|
|
|
|
})
|
2021-09-08 00:00:53 +02:00
|
|
|
}
|