diff --git a/templates/default/create_certificate_for_domain.sh b/templates/default/create_certificate_for_domain.sh
index 4850b29b0e1a15e718da1665c86e56116ad7c91a..4f3cd95b2bb32725340d910e9d8c37b2700aaab5 100755
--- a/templates/default/create_certificate_for_domain.sh
+++ b/templates/default/create_certificate_for_domain.sh
@@ -1,3 +1,4 @@
+#!/usr/bin/env bash
 if [ -z "$1" ]
 then
   echo "Please supply a subdomain to create a certificate for";
@@ -5,7 +6,7 @@ then
   exit;
 fi
 
-# Create a new private key if one doesnt exist, or use the xeisting one if it does
+# Create a new private key if one doesn't exist, or use the existing one if it does
 if [ -f device.key ]; then
   KEY_OPT="-key"
 else