0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

HTTPS Configuration on XAMPP for Windows

0
Posted at

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.key in xampp/apache/conf/ssl.key
  • Place server.crt in xampp/apache/conf/ssl.crt
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?