Certificate
SSL/TLS certificates encrypt data sent between a server and a user's browser, increasing online security and trust.
SSL/TLS certificates are cryptographic credentials that encrypt data sent between a web server and a user's browser, providing safe and secure connection. They establish user trust by authenticating the authenticity of websites. Certificates contain encryption keys, verification information, and information about the website. When a user views a site over HTTPS, the browser checks the certificate, displaying a padlock icon, confirming a secure connection and enhancing online security.
To generate a certificate, open the file "/etc/nginx/sites-available/default" and paste the specified content.
limit_req_zone $binary_remote_addr zone=mylimit:10m rate=30000r/s;
server {
server_name blog.zus.network;
location / {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_pass http://localhost:9000/;
}
}Run the command for certificate generation. It will prompt for email, agreements, and input '2' for Redirect.
sudo certbot --nginx -d blog.zus.network
sudo systemctl status certbot.timerOpen browser and check certificate is created or not .
If Step 3 is working then stop server nginx as for running wordpress we need php on our server and extra setup so we are going to run webserver by docker-compose.
sudo systemctl stop nginxLast updated