Instructions from the following issue: ueberauth/guardian#136
This is what I did to generate a password protected JWK file (which contains the generated key):
mix phoenix.gen.secret
touch .jwk_file
The first line just generates a secret I'm using as a password. And .jwk_file is the file to store