#!/usr/bin/env bash # # a simple script for use on shared cpanel server to automatically add the # the certificates to cpanel if the uapi function is available # use with RELOAD_CMD="${HOME}/cpanel_cert_upload domain.com" domain="$1" rawurlencode() { local string string=$(cat "${1}") local strlen=${#string} local encoded="" local pos c o for (( pos=0 ; pos