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

passphrases for CA and certificates #29

Open
luxus opened this issue Nov 16, 2022 · 4 comments
Open

passphrases for CA and certificates #29

luxus opened this issue Nov 16, 2022 · 4 comments

Comments

@luxus
Copy link

luxus commented Nov 16, 2022

Is it possible set passphrases while creating certificates and CA's via the api?

@necheffa
Copy link
Collaborator

@luxus this is not currently a supported feature.

@luxus
Copy link
Author

luxus commented Nov 18, 2022

are there plans to implement it and is it hard/take a long time?

@necheffa
Copy link
Collaborator

I do not believe there is currently any ongoing work to add such a feature.

In terms of difficulty to implement: I wouldn't think it is super hard but it probably isn't a one-weekend project either.
The REST API itself is probably a trivial change. Where things get a little interesting would be goca.go, ca.go, and cert/cert.go; here you'd need to adjust a few function signatures to handle a password parameter and some additional branching to handle certs with passwords and certs without. Which in it of itself is just busy work. But designing for API compatibility would take a little thinking and you might also think about using a pre-allocated byte slice (rather than a string) to hold the password so the memory location could be overwritten after use which could add a wrinkle or two.

@luxus luxus closed this as not planned Won't fix, can't repro, duplicate, stale Nov 26, 2022
@kairoaraujo
Copy link
Owner

I think we can keep it open as a feature request.
Maybe someone can implement it in the future.

@kairoaraujo kairoaraujo reopened this Nov 26, 2022
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

3 participants