- Sort Score
- Result 10 results
- Languages All
Results 1 - 6 of 6 for RawCert (0.14 sec)
-
pkg/test/csrctrl/authority/authority.go
// CertificateAuthority implements a certificate authority that supports policy // based signing. It's used by the signing controller. type CertificateAuthority struct { // RawCert is an optional field to determine if signing cert/key pairs have changed RawCert []byte // RawKey is an optional field to determine if signing cert/key pairs have changed RawKey []byte Certificate *x509.Certificate PrivateKey crypto.Signer
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Jul 28 18:22:37 UTC 2021 - 3K bytes - Viewed (0) -
pkg/controller/certificates/authority/authority.go
// CertificateAuthority implements a certificate authority that supports policy // based signing. It's used by the signing controller. type CertificateAuthority struct { // RawCert is an optional field to determine if signing cert/key pairs have changed RawCert []byte // RawKey is an optional field to determine if signing cert/key pairs have changed RawKey []byte Certificate *x509.Certificate PrivateKey crypto.Signer }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jun 23 19:36:11 UTC 2021 - 2.5K bytes - Viewed (0) -
pkg/controller/certificates/signer/ca_provider.go
} priv, ok := key.(crypto.Signer) if !ok { return fmt.Errorf("error reading CA key file %q: key did not implement crypto.Signer", p.caLoader.Name()) } ca := &authority.CertificateAuthority{ RawCert: certPEM, RawKey: keyPEM, Certificate: certs[0], PrivateKey: priv, } p.caValue.Store(ca) return nil } // currentCA provides the current value of the CA.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Dec 16 18:33:22 UTC 2021 - 2.8K bytes - Viewed (0) -
pkg/test/csrctrl/signer/ca_provider.go
} priv, ok := key.(crypto.Signer) if !ok { return fmt.Errorf("error reading CA key file %q: key did not implement crypto.Signer", p.caLoader.KeyFile) } ca := &authority.CertificateAuthority{ RawCert: certPEM, RawKey: keyPEM, Certificate: certs[0], PrivateKey: priv, Backdate: 5 * time.Minute, } p.caValue.Store(ca) return nil }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Oct 27 08:14:39 UTC 2021 - 4.4K bytes - Viewed (0) -
istioctl/pkg/writer/compare/sds/util.go
secret, err := builder.Build() if err != nil { return SecretItem{}, fmt.Errorf("error building secret: %v", err) } return secret, nil } func secretMetaFromCert(rawCert []byte) (SecretMeta, error) { block, _ := pem.Decode(rawCert) if block == nil { return SecretMeta{}, fmt.Errorf("failed to parse certificate PEM") } cert, err := x509.ParseCertificate(block.Bytes) if err != nil {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Jun 06 15:14:48 UTC 2023 - 6.6K bytes - Viewed (0) -
pkg/spiffe/spiffe.go
// Peer doesn't present a certificate. Just skip. Other authn methods may be used. return nil } var peerCert *x509.Certificate intCertPool := x509.NewCertPool() for id, rawCert := range rawCerts { cert, err := x509.ParseCertificate(rawCert) if err != nil { return err } if id == 0 { peerCert = cert } else { intCertPool.AddCert(cert) } } if len(peerCert.URIs) != 1 {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu May 23 21:07:03 UTC 2024 - 11.1K bytes - Viewed (0)