I'm trying to write a secure websocket (WSS) server in C#. I started out with unsecure sockets using TcpClient objects, but assumed I need to use SslStream for the secure version. I know I need to use AuthenticateAsServer()
to add a certificate and it's been pretty simple to do with a dummy cert file.
However, the web app I'm working on uses HTTPS certificates from AWS, and ideally, I'd like to use that for the server, too, but I can't figure out how to get the certificates from AWS to be used by the SslStream (Or even initialized as a X509Certificate object).
Is it even possible to use AWS certs in this manner? If so, how?