mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-06 10:43:56 +00:00
Merge pull request #48456 from cosmincojocar/fix_azure_cert_password
Automatic merge from submit-queue Use the azure certificate password when decoding the certificate **What this PR does / why we need it**: Use the correct password when decoding the azure client certificate. **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #47286 cc @colemickens
This commit is contained in:
commit
bd53fb6f66
@ -159,7 +159,7 @@ func newServicePrincipalToken(az *Cloud) (*azure.ServicePrincipalToken, error) {
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("reading the client certificate from file %s: %v", az.AADClientCertPath, err)
|
||||
}
|
||||
certificate, privateKey, err := decodePkcs12(certData, az.AADClientSecret)
|
||||
certificate, privateKey, err := decodePkcs12(certData, az.AADClientCertPassword)
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("decoding the client certificate: %v", err)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user