duritong/trocla — pull request #14 by asquelt (2014-02-26 17:21:04+00:00)
Title: x509 format

allows creating self-signed and CA-signed (CA needs to be in trocla, of course) SSL certificates.

ie.
trocla create my_shiny_selfsigned_ca x509 '{ CN: This is my self-signed certificate which doubles as CA, days: 3650 }'

and
trocla create test x509 '{ ca: my_shiny_selfsigned_ca, subject: /C=ZZ/O=Trocla Inc./CN=test/emailAddress=example@example.com, altnames: [ test, test1, test2, test3 ] }'

you can use C/ST/O/OU/CN/emailAddress options to describe certificate, or pass openssl certificate subject as string.