|
| 1 | +--- |
| 2 | +title: Known issue - Inferencing | Invalid certificate error during deployment |
| 3 | +titleSuffix: Azure Machine Learning |
| 4 | +description: During machine learning deployments with an AKS cluster, you may receive an invalid certificate error. |
| 5 | +author: s-polly |
| 6 | +ms.author: scottpolly |
| 7 | +ms.topic: troubleshooting |
| 8 | +ms.service: machine-learning |
| 9 | +ms.subservice: core |
| 10 | +ms.date: 08/04/2023 |
| 11 | +ms.custom: known-issue |
| 12 | +--- |
| 13 | + |
| 14 | +# Known issue - Invalid certificate error during deployment with an AKS cluster |
| 15 | + |
| 16 | +During machine learning deployments using an AKS cluster, you may receive an invalid certificate error, such as `{"code":"BadRequest","statusCode":400,"message":"The request is invalid.","details":[{"code":"KubernetesUnaccessible","message":"Kubernetes error: AuthenticationException. Reason: InvalidCertificate"}],` |
| 17 | + |
| 18 | + |
| 19 | + |
| 20 | +[!INCLUDE [dev v2](../includes/machine-learning-dev-v2.md)] |
| 21 | + |
| 22 | +**Status:** Open |
| 23 | + |
| 24 | +**Problem area:** Inferencing |
| 25 | + |
| 26 | +## Symptoms |
| 27 | + |
| 28 | +Azure Machine Learning deployments with an AKS cluster fail with the error: |
| 29 | + |
| 30 | +`{"code":"BadRequest","statusCode":400,"message":"The request is invalid.","details":[{"code":"KubernetesUnaccessible","message":"Kubernetes error: AuthenticationException. Reason: InvalidCertificate"}],` |
| 31 | +and the following error is shown in the MMS logs: |
| 32 | + |
| 33 | +`K8sReadNamespacedServiceAsync failed with AuthenticationException: System.Security.Authentication.AuthenticationException: The remote certificate was rejected by the provided RemoteCertificateValidationCallback. at System.Net.Security.SslStream.SendAuthResetSignal(ProtocolToken message, ExceptionDispatchInfo exception) at System.Net.Security.SslStream.CompleteHandshake(SslAuthenticationOptions sslAuthenticationOptions) at System.Net.Security.SslStream.ForceAuthenticationAsync[TIOAdapter](tioadapteradapterbooleanreceivefirstbytereauthenticationdatabooleanisapm) at System.Net.Http.ConnectHelper.EstablishSslConnectionAsync(SslClientAuthenticationOptions sslOptions, HttpRequestMessage request, Boolean async, Stream stream, CancellationToken cancellationToken)` |
| 34 | + |
| 35 | +## Cause |
| 36 | + |
| 37 | +This error occurs because the certificate for AKS clusters created before January 2021 does not include the `Subject Key Identifier` value, which prevents the required `Authority Key Identifier` value from being generated. |
| 38 | + |
| 39 | +## Solutions and workarounds |
| 40 | + |
| 41 | +There are two options to resolve this issue: |
| 42 | +- Rotate the AKS certificate for the cluster. See [Certificate Rotation in Azure Kubernetes Service (AKS) - Azure Kubernetes Service](../../aks/certificate-rotation.md) for more information. |
| 43 | +- Wait for 5 hours for the certificate to be automatically updated, and the issue should be resolved. |
| 44 | + |
| 45 | +## Next steps |
| 46 | + |
| 47 | +- [About known issues](azureml-known-issues.md) |
0 commit comments