TLSCertificate converts the key pair to a tls.Certificate.
()
| 85 | |
| 86 | // TLSCertificate converts the key pair to a tls.Certificate. |
| 87 | func (pair KeyPair) TLSCertificate() (tls.Certificate, error) { |
| 88 | return tls.X509KeyPair(pair.Certificate, pair.Private) |
| 89 | } |
| 90 | |
| 91 | // PublicKeyFingerprint returns the hex-encoded SHA-256 digest of the certificate's |
| 92 | // SubjectPublicKeyInfo. It depends only on the public key, so two certificates that |
no outgoing calls