From d72671894593127d039af7100bc43cd0566aabe5 Mon Sep 17 00:00:00 2001 From: Dan <36902356+danc403@users.noreply.github.com> Date: Fri, 2 Mar 2018 14:25:20 -0600 Subject: [PATCH] Delete keychain.sh --- deploy/keychain.sh | 31 ------------------------------- 1 file changed, 31 deletions(-) delete mode 100644 deploy/keychain.sh diff --git a/deploy/keychain.sh b/deploy/keychain.sh deleted file mode 100644 index a99ed465..00000000 --- a/deploy/keychain.sh +++ /dev/null @@ -1,31 +0,0 @@ -#!/usr/bin/env sh - -#Here is a sample custom api script. -#This file name is "myapi.sh" -#So, here must be a method myapi_deploy() -#Which will be called by acme.sh to deploy the cert -#returns 0 means success, otherwise error. - -######## Public functions ##################### - -#domain keyfile certfile cafile fullchain -keychain_deploy() { - _cdomain="$1" - _ckey="$2" - _ccert="$3" - _cca="$4" - _cfullchain="$5" - - _debug _cdomain "$_cdomain" - _debug _ckey "$_ckey" - _debug _ccert "$_ccert" - _debug _cca "$_cca" - _debug _cfullchain "$_cfullchain" - - /usr/bin/security import "$_ckey" -k "/Library/Keychains/System.keychain" - /usr/bin/security import "$_ccert" -k "/Library/Keychains/System.keychain" - /usr/bin/security import "$_cca" -k "/Library/Keychains/System.keychain" - /usr/bin/security import "$_cfullchain" -k "/Library/Keychains/System.keychain" - - return 0 -}