Need to setup gpg-agent first, on OSX I use keychain (it also does ssh-agent)
$ brew info keychain
keychain: stable 2.8.5
User-friendly front-end to ssh-agent(1)
https://www.funtoo.org/Keychain
/usr/local/Cellar/keychain/2.8.5 (7 files, 108.5KB) *| #!/bin/bash | |
| set +e | |
| CA_BUNDLE="${1}" | |
| shift | |
| if [ ! -s "${CA_BUNDLE}" ]; then | |
| echo "usage: ${0} <ca bundle file> [openssl commands]" | |
| echo "example: ${0} ca-bundle.pem -noout -subject -issuer" |