Fixes golang/go#69898 Change-Id: Idbb1bbe48016a622414c84a56fe26f48bfe712c8 Reviewed-on: https://go-review.googlesource.com/c/crypto/+/687155 Reviewed-by: Roland Shoemaker <roland@golang.org> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Auto-Submit: Roland Shoemaker <roland@golang.org> Reviewed-by: Mateusz Poliwczak <mpoliwczak34@gmail.com>
19 lines
420 B
Go
19 lines
420 B
Go
// Copyright 2025 The Go Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style
|
|
// license that can be found in the LICENSE file.
|
|
|
|
package bundle
|
|
|
|
import (
|
|
"crypto/x509"
|
|
"testing"
|
|
)
|
|
|
|
func TestRootsCanBeParsed(t *testing.T) {
|
|
for root := range Roots() {
|
|
if _, err := x509.ParseCertificate(root.Certificate); err != nil {
|
|
t.Fatalf("Could not parse root certificate: %v", err)
|
|
}
|
|
}
|
|
}
|