duritong / trocla

A password store for password creation and retrieval
Other
75 stars 18 forks source link

trocla get x509 render key/cert only #42

Closed Poil closed 7 years ago

Poil commented 7 years ago

Hi,

We are unable to get keyonly/certonly on x509 with CLI.

After patching the get function in bin/trocla by adding

options.merge(YAML.load(options.delete(:other_options).shift.to_s)||{})

like in the create function, we have it working with this syntax

trocla get testmeettestmoisontdansunbato x509 '{render: keyonly}'

Are we totally wrong ?

duritong commented 7 years ago

good catch. thanks! should be fixed.