How to fix error in ssl handshake when use "azure::storage::cloud_blob_client get_container_reference" in arm enviroment

mira 0 Reputation points
2024-12-24T02:31:03.5366667+00:00

User's image

when it ran on the arm , an exception was thrown, which is " Error in SSL handshake".

Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
3,020 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Keshavulu Dasari 2,835 Reputation points Microsoft Vendor
    2024-12-24T03:29:47.02+00:00

    Hi mira ,

    Greetings! Welcome to Microsoft Q&A Forum. Thanks for posting you query here!

    SSL handshake error when running your code on an ARM system. This issue can occur due to several reasons, such as certificate validation problems, differences in SSL/TLS libraries, or specific configurations required for ARM architecture.
    I suggest few steps you can take to troubleshoot the issue.
    https://techcommunity.microsoft.com/blog/azurepaasblog/ssltls-connection-issue-troubleshooting-guide/2108065

    Check Certificate Validation: Ensure that the certificates are correctly installed and accessible on the ARM system. Sometimes, disabling certificate validation temporarily can help identify if the issue is related to certificates.

    http_client_config config; config.set_validate_certificates(false); auto client = http_client(U("https://example.com"), config);
    

    Update SSL/TLS Libraries: Make sure that the SSL/TLS libraries on your ARM system are up to date. Outdated libraries can cause handshake failures.

    Verify OpenSSL Configuration: If you're using OpenSSL, check its configuration and ensure it supports the required protocols and ciphers.

    Check for Platform-Specific Issues: Sometimes, there might be platform-specific issues or bugs. Reviewing forums or issue trackers related to your specific ARM platform can provide insights. For example, there have been similar issues reported on platforms like Jetson TX1
    For more information:
    https://github.com/Microsoft/cpprestsdk/issues/369
    https://learn.microsoft.com/en-us/answers/questions/1444173/tls-ssl-connection-failed


    Please do not forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members. 
    User's image

    If you have any other questions or are still running into more issues, let me know in the "comments" and I would be happy to help you

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.