Settings for XAMPP on Windows
Port 443 is used for HTTPS (SSL/TLS). To access a site using https://, a server certificate must be available on the server.
openssl req -x509 -nodes -days 365 ^
-newkey rsa:2048 ^
-keyout server.key ^
-out server.crt ^
-config xampp/apache/conf/openssl.cnf
After executing the above command, the following files are generated:
| File | Description |
|---|---|
server.crt |
Server certificate |
server.key |
Server private key |
privkey.pem |
Server private key (PEM format) |
Server Certificate
A web server provides its certificate to clients to prove its identity.
Server Private Key
A client sends data encrypted with the server's public key.
The server decrypts the data using its private key.
On XAMPP
- Place
server.keyinxampp/apache/conf/ssl.key - Place
server.crtinxampp/apache/conf/ssl.crt