Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create cert/key files with output of CSR/cert generation if they don't exist #58

Open
reedloden opened this issue Aug 9, 2013 · 1 comment

Comments

@reedloden
Copy link

It would be nice if the writing of the .crt and .key files to disk was built-in so it doesn't have to be done manually (as in, I pass in filenames -- if they exist, they are used... if they don't exist, they are written to with the output of the CSR / cert creation).

@reaperhulk
Copy link
Member

Do you mean this for the r509 binary or programmatically? Could you give a sketch of what API you'd like to see? In the API right now it works like this:

csr = R509::CSR.new(:type => "ec", :subject => [['CN','test']])
csr.write_pem("/some/path")
csr.key.write_pem("/some/path.key")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants