This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [ "$#" -ne 2 ] || ! [ -d "$1" ]; then | |
echo "Usage: $0 /Path/To/Certificate CERT_NAME" >&2 | |
exit 1 | |
fi | |
# This assumes the cert is in the same directory as the script | |
source="$( cd $1 && pwd )" | |
# ca-certificate of the VM |