4/29/2023 0 Comments Rsa pem formatNET Core 2.1 still does not support FromXmlString in class. Since I decided to write my whole code for ASP.NET Core, there was another challenge. NET Core 2.1 does not support FromXmlString Ideally, I would like to get away from the XML format of RSA key pairs. With using and external website, it is a bit dodgy. This is fine for setting up demo project, but let's say we want to automate key generation. I had to take my RSA keys and re-format it from PEM to XML using online too ( ). Instead it needs XML folrmat of the private/public keys. NET framework does not load RSA keys natively from PEM which is the output format of the OpenSSL tool. Challenge number 2 - PEM format not supported For this porpose I could either spin up a Linix VM or, as an easier and less heavy solution, I used Cygwin tool to run OpenSSL commands and generate private/public RSA key value pair. To start with everthing, first I had to generate RSA key pair since I had to use an external tool which is not natively a part of Windows since I am using Windows as my development machine. As I was setting up the RSA keys to test the demo appliation I kept running to some challanges that did not make thigs going so smooth Challenge number 1 - OpenSSL Recently I wrote and article about using asymmetric keys for token based authentication in ASP.NET Core.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |