Several tools are available for you to use to generate public and private keys on a Mac computer. This documentation uses the ssh-keygen authentication key utility. More information about the OpenSSH version of ssh-keygen is available on SSH.com.
Installing ssh-keygen
To install ssh-keygen, you may need to first install Apple's Xcode developer tools first. Launch a terminal window and then type xcode-select --install
.
Next, you may need to install Homebrew. In the terminal window, type the following:
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" echo 'export PATH=/usr/local/bin:/usr/local/sbin:$PATH' >> ~/.profile
Once this process is complete, install the Pip package management system. In the terminal window type sudo easy_install pip
.
Finally, install PyJWT , a Python library that allows you to encode and decode JSON Web Tokens (JWT). In the terminal window type sudo pip install PyJWT
.