Link to home
Start Free TrialLog in
Avatar of Starr Duskk
Starr DuskkFlag for United States of America

asked on

SecurityProtocol and 500 server error

I'm confirming on the ServicePointManager...

https://docs.microsoft.com/en-us/dotnet/api/system.net.servicepointmanager?view=netframework-4.7.2

That if I use this with an HttpWebRequest, it will require one of these protocols:
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12 Or System.Net.SecurityProtocolType.Ssl3 Or System.Net.SecurityProtocolType.Tls

Open in new window


When we send XML to the client, it is erroring with a 500 server error, and I suspect it is because, as I was just informed, that they haven't configured the TLS12 yet.

If I have that protocol set prior to sending our HttpWebRequest, will it cause a 500 server error if they don't have it configured?

Thanks!
ASKER CERTIFIED SOLUTION
Avatar of David Johnson, CD
David Johnson, CD
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Starr Duskk

ASKER

ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12 Or System.Net.SecurityProtocolType.Ssl3 Or System.Net.SecurityProtocolType.Tls or AllowNoEncryption or NoEncryption or RequireEncryption

Would that be like the above?

And it would just be determined which is used on the end we are sending to, but not our end? We'd still require they send it using encryption? Or how might that work?