Search code examples
restsslwin-universal-app.net-corewindowsiot

.Net Core and SSL jet possible with StreamSocket/RESTful/SignalR as Server/Client?


I ask my self if there are any ways to send data per SSL encrypted on an UWP. Because I have to send DATA encrypted from a Raspberry Pi 3 (Windows IoT) to an server.

Does anybody know if it is possbile? And if can you send me a link to a sample/tutorial? THX


Solution

  • In UWP, you can use different technologies to send SSL data. If you need to communicate in HTTPS, Windows.Web.Http.HttpClient would be the best choice, as it provides best capabilities in terms of SSL (more details here). You can also use secure sockets as described here (also the sample code for using secure sockets is available in UWP Samples on GitHub).