curl: (35) schannel: AcquireCredentialsHandle failed

zai chen 0 Reputation points
2024-12-30T02:32:01.2433333+00:00

When I use curl tool to request some https url,e.g.:https://google.com,the result like this:

curl: (35) schannel: AcquireCredentialsHandle failed:

SEC_E_INTERNAL_ERROR (0x80090304) - The Local Security Authority cannot be contacted

Windows for business | Windows Client for IT Pros | User experience | Other
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Anonymous
    2024-12-30T14:24:24.3466667+00:00

    Hello zai chen,

    Thank you for posting in Q&A forum.

    It looks like you're experiencing an issue when trying to access an HTTPS URL. The error message SEC_E_INTERNAL_ERROR (0x80090304) - The Local Security Authority cannot be contacted is related to the Secure Channel (Schannel) security package on Windows.

    Here are a few troubleshooting steps you can try:

    1. Update Curl:

    Ensure that you are using the latest version of curl. Outdated versions might have bugs or compatibility issues with certain SSL/TLS configurations.

    1. Check Schannel settings:

    Sometimes, Schannel settings in the Windows registry can cause issues. You can try resetting these settings to their defaults. Be cautious when editing the registry and consider backing it up first.

    To reset Schannel settings:

    Press Windows Key + R, type regedit, and press Enter.

    Navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL.

    Check for any custom settings or subkeys (e.g., Protocols, Ciphers). If there are any, consider researching them online or backing them up before making any changes.

    1. Check the Windows Root Certificate Store:

    If the site's certificate chain requires certain CA certificates that are not present in the Windows Root Certificate Store, the TLS handshake can fail. You can update the Windows root certificates through Windows Update.

    1. Firewall/Security Software:

    Sometimes, firewall or security software can interfere with SSL connections. Try temporarily disabling them to see if it resolves the issue.

    1. Test on another machine:

    If possible, test the same curl command on a different Windows machine to check if the issue is specific to your current setup.

    I hope the information above is helpful.

    If you have any questions or concerns, please feel free to let us know.

    Best Regards,

    Daisy Zhou

    ============================================

    If the Answer is helpful, please click "Accept Answer" and upvote it.

    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.