Certificate generation for secure httpAdministration > Utility programs > beas Server management > Internal HTTP server > Certificate generation for secure http |
Top
Previous
Next
|
|
With the generation of certificates, you can make your http connection secure. Follow the steps below:
1. Install a program to generate certificates. You can use software from the github page: https://github.com/FiloSottile/mkcert/releases 2. To execute certificates, create a folder in your computer named "certs" or similar. 3. Download the certificate file and rename it. 4. Execute the file in the Command prompt: Insert "mkcert - install" command to generate the certs. The system returns a message: "Created new local CA":
5. Copy the link or IP address and add it in the command prompt (see image above). You can also generate more than one certificate by typing the links/IP addresses after each other. The system then returns the message: "Created a new certificate valid for the following names: XXX" (see image below):
6. To install the certificates, change the extension of the file in the cert folder from ".pem" to ".crt", double-click the file, and click the "Install Certificate..." button in the opening Certificate window. The system displays the related certificate information. Then click "Install Certificate..." again:
7. Select User, click Next and add the location to store the certificate: the "Trusted Root Certification Authorities" folder. This finishes installation.
You can check if installation was successful in the "Manage user certificates" Windows Control panel option. Go to the "Trusted Root Certification Authorities" folder, and check it for certificates starting with "mkcert".
8. Rename the certificate file to the original ".pem" extension. 9. Go back to Apache configuration of http, and open the configured Virtual host:
10. Find the SSL certificate file and SSL Certificate keyfile, and place a # before the default ones there, and delete the # from before the ones you just generated:
11. Save the configuration. 12. Click Start in the XAMPP Control Panel, and open the web server with the current port number. The result should be:
IMPORTANT: If Chrome was open during configuration, close and reopen it. Note: When updating the .mtar files, provide the https link in the "Beas Web Url ..." field.
See |