Execute the following command:
ssh-keygen -y -f /tmp/key.pem > key.pub