Created
January 15, 2015 05:08
-
-
Save jacyzon/5ec6bbc47b26b500807e to your computer and use it in GitHub Desktop.
convert cert, key into json format
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ruby -rjson -e 'puts JSON[Hash[Hash[*ARGV].map { |k,v| [k, File.read(v)] }]]' -- \ | |
| cert cert.pem \ | |
| key key.pem \ | |
| > example.com.json |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment