Additional Microsoft Defender tools and services that provide security across various platforms and environments
The error message you are encountering, "SSL peer certificate or SSH remote key was not OK," indicates that there is an issue with the SSL certificate validation when your Linux host attempts to connect to the specified Microsoft Defender for Endpoint service URL. Here are some steps to help you troubleshoot and potentially resolve this issue:
- Check Certificate Validity: Ensure that the SSL certificate for the endpoint is valid. You can do this by running the following command to inspect the certificate:
This command will provide details about the certificate, including its validity period and issuer.openssl s_client -connect edr-usmv.usm.endpoint.security.microsoft.us:443 - Verify CA Certificates: Make sure that the root CA certificate for the SSL certificate used by the endpoint is installed on your Linux host. If the certificate is not trusted, you may need to install the appropriate CA certificate.
- Check for Proxy Interference: If your network uses a proxy, ensure that it is not interfering with SSL connections. Corporate proxies can sometimes perform SSL inspection, which can lead to certificate validation issues. If SSL inspection is in place, consider adding the endpoint to the allowlist or configuring exceptions.
- Run Connectivity Test: After checking the certificate and proxy settings, run the connectivity test again using:
This will help you determine if the issue persists after making changes.mdatp connectivity test - Firewall Rules: Verify that your firewall rules allow outbound connections to the necessary Microsoft Defender for Endpoint URLs and that there are no other services blocking the connection.
If you continue to experience issues, you may need to consult with your network administrator or Microsoft support for further assistance.
References: