The encrypted store is not available | AWSSDK C

I'm getting the following exception using AWSSDK v 3.5.1.58:

The encrypted store is not available. This may be due to use of a non-Windows operating system or Windows Nano Server, or the current user account may not have its profile loaded.

This is due to the application unable to use crypt32.dll. Now this is strange since the file is in System32 running on Server 2019 and IIS 10. There's no real documentation around this. I'm using ADFS auth. FederatedAWSCredentials

This works fine on local dev, but not once deployed.

The file generating the error can be found here: https://github.com/aws/aws-sdk-net/blob/133eddb00a3fbd2ab395e01c3d84ac9fe1ff38b2/sdk/src/Core/Amazon.Util/Internal/SettingsManager.cs on line 213


  1. RDP to your server
  2. and follow the steps in the image