This article is a mirror article of machine translation, please click here to jump to the original article.

View: 4|Reply: 2

[ASP.NET] ASP.NET Core (35) https protocol monitors use PEM certificates

[Copy link]
Posted on14 minutes ago | | | |
Requirement: Create a new web application using ASP.NET Core 8 and run it directly. Users access the asp.net Core application directly without going through the nginx reverse proxy forwarding. If the website wants to use the HTTPS protocol, how can it listen for and load a pem format certificate?

PEM is a file format that typically contains certificates or private/public keys. PEM file support on Windows and .NET has always been less than ideal, but on other platforms it remains the standard format. However,Starting with .NET 5, .NET has out-of-the-box support for parsing certificates and keys in PEM files

Edit the appsettings.json configuration file and add the following:
Launch the application, as shown below:





Previous:Charles Schwab W-8BEN Check status
 Landlord| Posted on3 minutes ago |
The PFX format configuration is as follows:
 Landlord| Posted on1 minute ago |
Among them, HttpsFromPem and MyHttpsEndpoint are set arbitrarily. Reference:The hyperlink login is visible.
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com