Installation macOS You can Install Gpg on macOS using:
$ brew install gpg Workflow Getting Existing Key To get an existing key id use:
gpg --list-secret-keys --keyid-format LONG The key id will be available at
gpg --list-secret-keys --keyid-format LONG /home/foo/.gnupg/pubring.gpg ------------------------------ sec rsa2048/7FFFC09ACAC05FD0 2017-06-02 [SC] [expires: 2019-06-02] 5538B0F643277336BA7F0E457FFFC09ACAC05FD0 uid [ultimate] foo