Versions in this module Expand all Collapse all v1 v1.10.0 Aug 16, 2018 Changes in this version + func BuildPKISerial(timestamp int64) *big.Int + func ComputeAWSKeyFingerprint(publicKey string) (string, error) + func ComputeOpenSSHKeyFingerprint(publicKey string) (string, error) + type Certificate struct + Certificate *x509.Certificate + IsCA bool + PublicKey crypto.PublicKey + Subject pkix.Name + func ParsePEMCertificate(pemData []byte) (*Certificate, error) + func SignNewCertificate(privateKey *PrivateKey, template *x509.Certificate, signer *x509.Certificate, ...) (*Certificate, error) + func (c *Certificate) AsBytes() ([]byte, error) + func (c *Certificate) AsString() (string, error) + func (c *Certificate) MarshalJSON() ([]byte, error) + func (c *Certificate) UnmarshalJSON(b []byte) error + func (c *Certificate) WriteTo(w io.Writer) (int64, error) + type PrivateKey struct + Key crypto.PrivateKey + func GeneratePrivateKey() (*PrivateKey, error) + func ParsePEMPrivateKey(data []byte) (*PrivateKey, error) + func (k *PrivateKey) AsBytes() ([]byte, error) + func (k *PrivateKey) AsString() (string, error) + func (k *PrivateKey) MarshalJSON() ([]byte, error) + func (k *PrivateKey) UnmarshalJSON(b []byte) (err error) + func (k *PrivateKey) WriteTo(w io.Writer) (int64, error)