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

View: 1601|Reply: 1

Use mkcert to generate a self-signed domain name certificate

[Copy link]
Posted on 12/7/2024 10:32:51 AM | | |
Requirements: Sometimes local development requires https protocol access (or demonstration), and may not have applied for an official domain name certificate, but needs to generate a self-signed certificate locally for browsers to trust.


OpenSSL is deployed from visa documents to IIS and SLB
https://www.itsvse.com/thread-10034-1-1.htm

The previous plan was more troublesome and the configuration was more verbose. I saw from the Internet that mkcert can be generated with one click, which is more convenient, first download the "mkcert-v1.4.4-windows-amd64.exe" program. (omitted)

MKCERT Download Address:The hyperlink login is visible.

Install the CA root certificate


The command is as follows:



View the CA certificate file path:



CA certificates are valid for 10 years, as shown below:




Generate a self-signed certificate

You can use a local CA certificate authority to generate a self-signed certificate for multiple domain names (separated by spaces) with the following command:





Test access

Modify the local hosts file and start a web service using http-server with the following command:

As shown below:



(End)





Previous:Linux systems use nc to listen to TCP ports
Next:.NET 8 calls functions in the C++ Dynamic Link library
 Landlord| Posted on 12/7/2024 10:34:28 AM |
mkcert-v1.4.4-windows-amd64.exe (4.67 MB, Number of downloads: 0, 售价: 5 粒MB)
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