Skip to content

Instantly share code, notes, and snippets.

Installing or renewing a certificate in Apache on CentOS

Step 1 - Generate 2048 bit Certificate Signing Request (CSR) and Private Key

In your home directory on the server create a folder with a meaningful name eg certRequests. Within the new folder run the following command to generate the CSR and private key. Ensure to update changeme to your domain name.

sudo openssl req -new -newkey rsa:2048 -nodes -keyout changeme.com.key -out changeme.com.csr

Two files are created in the directory. The *.csr file or it's contents are what to submit to the certificate authority of choice

@Adam157
Adam157 / my.cnf
Created November 28, 2018 00:55 — forked from fevangelou/my.cnf
Optimized my.cnf configuration for MySQL/MariaSQL (on cPanel/WHM servers)
# Optimized my.cnf configuration for MySQL/MariaSQL on cPanel/WHM servers
#
# by Fotis Evangelou, developer of Engintron (engintron.com)
#
# === Updated July 2018 ===
#
# The settings provided below are a starting point for a 2GB - 4GB RAM server with 2-4 CPU cores.
# If you have less or more resources available you should adjust accordingly to save CPU,
# RAM and disk I/O usage.
# The settings marked with a specific comment or the word "UPD" after the value