Technical Tip: Azure CLI login Failure issue with FortiSASE deep inspection
| Description | This article describes how to solve the Azure CLI Login Failure issue because the certificate verification failed. |
| Scope | FortiSASE. |
| Solution | The end user can not access the Azure CLI with the following error message:
az login
This is because the FortiSASE self-signed certificates verification failed with Azure. To fix this issue, the FortiSASE CA certificate needs to be imported into the following PEM file:
For windows:
Windows 32-bit C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\Lib\site-packages\certifi\cacert.pem
Download the CA certificate:
Run:
C:\Users\user>az --version core 2.78.0 Dependencies: Python location 'C:\Program Files\Microsoft SDKs\Azure\CLI2\python.exe' <------
To find out the partition.
Copy the certificate:
-----BEGIN CERTIFICATE----- <certificate here> -----END CERTIFICATE-----
To the pem file. The Azure CLI can log in now:
C:\Users\tchris>az login Retrieving tenants and subscriptions for the selection... [Tenant and subscription selection] ... [Announcements] If you encounter any problem, please open an issue at https://aka.ms/azclibug [Warning] The login output has been updated. Please be aware that it no longer displays the full list of available subscriptions by default. |


