Skip to content

Instantly share code, notes, and snippets.

@aaronzirbes
aaronzirbes / add-host-to-ubuntu-keystore.sh
Created February 3, 2012 10:15
This will add a web server's SSL certificate to your Ubuntu System-wide keystore
#!/bin/bash
host=$1
port=$2
# Make sure we got the host name
if (( ${#host} == 0 )); then
echo "usage: $0 <hostname> [port]"
exit 1
elif (( ${#port} == 0 )); then