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

Set explicit password for pkcs 12 keystores #317

Closed

Conversation

FlyingSheepOnSailfish
Copy link

Added one new command line flag:

-p12-password
	Explicitly set the password of the PKCS #12 file,
	the same password is used for both the keystore and the keypair.
	Empty passwords are NOT allowed.

If this is not set, behaviour is unchanged.

Previously password was hardcoded to "changeit".
The new -p12-password allows an explict password to be set.
The same password is used for the keystore, and for the keypair.
removed demo keystore
@alexfornuto
Copy link

I discover this PR almost a year later, and would love to see it merged.

@FiloSottile
Copy link
Owner

Thank you, but as mentioned in #316 and https://pkg.go.dev/software.sslmate.com/src/go-pkcs12?utm_source=godoc#pkg-constants, PKCS#12 encryption is not at all robust, and exposing a way to set a password would give users the impression that it's safe to rely on it.

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

Successfully merging this pull request may close these issues.

None yet

3 participants