mirror of
https://github.com/kubernetes/client-go.git
synced 2025-09-19 01:12:53 +00:00
Extract new keyutil package from client-go/util/cert
This package contains public/private key utilities copied directly from client-go/util/cert. All imports were updated. Future PRs will actually refactor the libraries. Updates #71004 Kubernetes-commit: 18458392ca24c85c688e655aace1afd04f864cbd
This commit is contained in:
committed by
Kubernetes Publisher
parent
12a0647ebb
commit
ba851ad197
@@ -38,6 +38,7 @@ import (
|
||||
certificatesclient "k8s.io/client-go/kubernetes/typed/certificates/v1beta1"
|
||||
"k8s.io/client-go/util/cert"
|
||||
"k8s.io/client-go/util/certificate/csr"
|
||||
"k8s.io/client-go/util/keyutil"
|
||||
)
|
||||
|
||||
// certificateWaitTimeout controls the amount of time we wait for certificate
|
||||
@@ -547,7 +548,7 @@ func (m *manager) generateCSR() (template *x509.CertificateRequest, csrPEM []byt
|
||||
return nil, nil, nil, nil, fmt.Errorf("unable to marshal the new key to DER: %v", err)
|
||||
}
|
||||
|
||||
keyPEM = pem.EncodeToMemory(&pem.Block{Type: cert.ECPrivateKeyBlockType, Bytes: der})
|
||||
keyPEM = pem.EncodeToMemory(&pem.Block{Type: keyutil.ECPrivateKeyBlockType, Bytes: der})
|
||||
|
||||
template = m.getTemplate()
|
||||
if template == nil {
|
||||
|
Reference in New Issue
Block a user