mirror of https://github.com/k3s-io/k3s
Use the azure certificate password when decoding the certificate
parent
4ae3b032f4
commit
afafb3f231
|
@ -159,7 +159,7 @@ func newServicePrincipalToken(az *Cloud) (*azure.ServicePrincipalToken, error) {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, fmt.Errorf("reading the client certificate from file %s: %v", az.AADClientCertPath, err)
|
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 {
|
if err != nil {
|
||||||
return nil, fmt.Errorf("decoding the client certificate: %v", err)
|
return nil, fmt.Errorf("decoding the client certificate: %v", err)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue