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 certificate without password? #1

Open
kepi opened this issue Jul 17, 2024 · 2 comments
Open

Create certificate without password? #1

kepi opened this issue Jul 17, 2024 · 2 comments

Comments

@kepi
Copy link

kepi commented Jul 17, 2024

Hi,

is there any way how to create private key without password? According to features, it should be possible:

Functionality
...
Don't password-encrypt certificate private-keys

but when not setting password for certs or setting it to empty string, password quality assertion kicks in:

- pki_cert_pwd | meets_password_complexity(PKI_HC)

IMHO passwords for server certificates aren't used as much as for clients certificates, so it would be great to allow it. If setting empty string to password env variable would work, fix should be probably easy.

Thanks for considering.

@ansibleguy
Copy link
Owner

Greetings!

It may be that I've forgotten to test that case, yes (:
Should work now.

Thank you for reporting the issue!

@kepi
Copy link
Author

kepi commented Jul 31, 2024

Just heads up that the fix isn't enough. It seems that pki_cert.sh have to be adjusted too.

I tried to fix this igloonet@05c4fcd but didn't have time to test it yet as it took me too much time and when digging through code I discovered that you can export unencrypted pem, which is working for me too. Maybe there is no need to certs without password this way.

If you want, feel free to take the changes in our branch and try them, I'm afraid now that I'll never get to finish it.

@ansibleguy ansibleguy reopened this Sep 8, 2024
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