🔐

Setup SSL

OwnerKKasun Wathsara Hapangama
TagsUnsupported
💡
SSL (Secure Sockets Layer) is a security protocol that establishes an encrypted and secure connection between a web server and a user's web browser. It ensures the confidentiality, integrity, and authenticity of data exchanged between the two parties. SSL is widely used to protect sensitive information such as login credentials, personal data, and payment details during online transactions, making it an essential technology for securing data transmitted over the internet.
⚠️
You have to connect Domain name before SSL setup
🚨
This Feature Is Not Officially Supported by this plugin!

01. Obtain Let's Encrypt SSL/TLS Certificate and keystore file

  1. Download the latest version of Certbot from the Certbot website.
  1. Open Command Prompt and navigate to the Certbot directory.
  1. Run the command certbot certonly --manual --preferred-challenges http -d yourdomain.com to start the certificate request process.
  1. Follow the prompts to enter your email address and agree to the terms of service.
  1. When prompted, create a file with the specified filename and contents in the .well-known/acme-challenge/ directory of your web server's document root (plugins/SimpleWebsite/public/default/) and press Enter.
  1. Verify that the file is accessible from http://yourdomain.com/.well-known/acme-challenge/filename.
  1. Once verified, press Enter to continue.
  1. Certbot will generate your SSL certificate and key files.
  1. Convert the key files to a .p12 keystore using the command openssl pkcs12 -export -out yourdomain.p12 -inkey privkey.pem -in cert.pem.
  1. Follow the prompts to enter a password for the keystore.
  1. Your .p12 keystore is now ready to use.

02. Add Keystore file to the plugin Directory

  1. Upload keystore.p12 file to plugins/SimpleWebsite/ Directory
  1. Change following settings from config.yml
useSSL: true keyStorePassword: your-keystore-password
  1. Restart The Server