certificatesigningrequests

package
v1.5.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 23, 2021 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExpectCertificateDNSNamesToMatch

func ExpectCertificateDNSNamesToMatch(csr *certificatesv1.CertificateSigningRequest, _ crypto.Signer) error

ExpectCertificateDNSNamesToMatch checks if the issued certificate has all DNS names it requested, accounting for the CommonName being optionally copied to the DNS Names

func ExpectCertificateIPsToMatch

func ExpectCertificateIPsToMatch(csr *certificatesv1.CertificateSigningRequest, _ crypto.Signer) error

ExpectCertificateIPsToMatch checks if the issued certificate has all IP SANs names it requested

func ExpectCertificateOrganizationToMatch

func ExpectCertificateOrganizationToMatch(csr *certificatesv1.CertificateSigningRequest, _ crypto.Signer) error

ExpectCertificateOrganizationToMatch checks if the issued certificate has the same Organization as the requested one

func ExpectCertificateURIsToMatch

func ExpectCertificateURIsToMatch(csr *certificatesv1.CertificateSigningRequest, _ crypto.Signer) error

ExpectCertificateURIsToMatch checks if the issued certificate has all URI SANs names it requested

func ExpectConditionApproved

func ExpectConditionApproved(csr *certificatesv1.CertificateSigningRequest, _ crypto.Signer) error

ExpectConditionApproved checks that the CertificateSigningRequest has been Approved

func ExpectConditionNotFailed

func ExpectConditionNotFailed(csr *certificatesv1.CertificateSigningRequest, _ crypto.Signer) error

ExpectConditionNotFailed checks that the CertificateSigningRequest is not Failed

func ExpectConditiotNotDenied

func ExpectConditiotNotDenied(csr *certificatesv1.CertificateSigningRequest, _ crypto.Signer) error

ExpectConditionNotDenied checks that the CertificateSigningRequest has not been Denied

func ExpectEmailsToMatch

func ExpectEmailsToMatch(csr *certificatesv1.CertificateSigningRequest, _ crypto.Signer) error

ExpectEmailsToMatch check if the issued certificate has all requested email SANs

func ExpectIsCA

ExpectIsCA checks the certificate is a CA if requested

func ExpectKeyUsageExtKeyUsageClientAuth

func ExpectKeyUsageExtKeyUsageClientAuth(csr *certificatesv1.CertificateSigningRequest, _ crypto.Signer) error

ExpectKeyUsageExtKeyUsageClientAuth checks if the issued certificate has the extended key usage of client auth

func ExpectKeyUsageExtKeyUsageServerAuth

func ExpectKeyUsageExtKeyUsageServerAuth(csr *certificatesv1.CertificateSigningRequest, _ crypto.Signer) error

ExpectKeyUsageExtKeyUsageServerAuth checks if the issued certificate has the extended key usage of server auth

func ExpectKeyUsageUsageDataEncipherment

func ExpectKeyUsageUsageDataEncipherment(csr *certificatesv1.CertificateSigningRequest, _ crypto.Signer) error

ExpectKeyUsageUsageDataEncipherment checks if a cert has the KeyUsageDataEncipherment key usage set

func ExpectKeyUsageUsageDigitalSignature

func ExpectKeyUsageUsageDigitalSignature(csr *certificatesv1.CertificateSigningRequest, _ crypto.Signer) error

UsageDigitalSignature checks if a cert has the KeyUsageDigitalSignature key usage set

func ExpectValidCertificate

func ExpectValidCertificate(csr *certificatesv1.CertificateSigningRequest, _ crypto.Signer) error

ExpectValidCertificateCertificate checks if the certificate is a valid x509 certificate

func ExpectValidCommonName

func ExpectValidCommonName(csr *certificatesv1.CertificateSigningRequest, _ crypto.Signer) error

ExpectValidCommonName checks if the issued certificate has the requested CN or one of the DNS SANs

func ExpectValidDuration

func ExpectValidDuration(csr *certificatesv1.CertificateSigningRequest, _ crypto.Signer) error

ExpectValidDuration checks if the issued certificate matches the requested duration

func ExpectValidPrivateKeyData

func ExpectValidPrivateKeyData(csr *certificatesv1.CertificateSigningRequest, key crypto.Signer) error

ExpectValidPrivateKeyData checks the requesting private key matches the signed certificate

Types

type ValidationFunc

type ValidationFunc func(csr *certificatesv1.CertificateSigningRequest, key crypto.Signer) error

ValidationFunc describes a CertificateSigningRequest validation helper function

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL