Skip to content

Instantly share code, notes, and snippets.

@Xavron
Xavron / certinstall.sh
Last active July 24, 2019 19:27
cert installation
#!/bin/sh
# Install cert files in cPanel directly using cPanel's CLI
# (compatible with namecheap shared hosting)
# This is provided as-is. You can do what you want with it.
# Set domain name cert is to be used with (CHANGE TO YOUR DOMAIN)
# Currently, only works for one domain
dom='example.com'
# Set the username of cPanel (CHANGE TO YOUR CPANEL USERNAME)