I have an ASP.NET Solution with a Webforms app and a class library. In the class library there is text that needs to read from a .pem file using
File.ReadAllText('PATH GOES HERE')
Currently the .pem file is sitting in the root directory of the class library. Is there any possible way to tell the code to access it from here? It seems like it keeps looking for it at:
C:\Program Files (x86)\IIS Express\private_key.pem
Should I store this file somewhere else?
I need a secure place to store it where only the File.ReadAllText can access it and not anyone through the website.