package csr
import "k8s.io/client-go/util/certificate/csr"
Index ¶
- func RequestCertificate(client certificatesclient.CertificateSigningRequestInterface, csrData []byte, name string, usages []certificates.KeyUsage, privateKey interface{}) (req *certificates.CertificateSigningRequest, err error)
- func WaitForCertificate(ctx context.Context, client certificatesclient.CertificateSigningRequestInterface, req *certificates.CertificateSigningRequest) (certData []byte, err error)
Functions ¶
func RequestCertificate ¶
func RequestCertificate(client certificatesclient.CertificateSigningRequestInterface, csrData []byte, name string, usages []certificates.KeyUsage, privateKey interface{}) (req *certificates.CertificateSigningRequest, err error)
RequestCertificate will either use an existing (if this process has run before but not to completion) or create a certificate signing request using the PEM encoded CSR and send it to API server, then it will watch the object's status, once approved by API server, it will return the API server's issued certificate (pem-encoded). If there is any errors, or the watch timeouts, it will return an error.
func WaitForCertificate ¶
func WaitForCertificate(ctx context.Context, client certificatesclient.CertificateSigningRequestInterface, req *certificates.CertificateSigningRequest) (certData []byte, err error)
WaitForCertificate waits for a certificate to be issued until timeout, or returns an error.
Source Files ¶
csr.go
- Version
- v0.17.8
- Published
- Jun 26, 2020
- Platform
- js/wasm
- Imports
- 19 packages
- Last checked
- 6 minutes ago –
Tools for package owners.