-
-
Notifications
You must be signed in to change notification settings - Fork 133
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
password is getting requested #159
Comments
I'm preparing a PR... |
KaiSchwarz-cnic
added a commit
that referenced
this issue
Oct 6, 2017
KaiSchwarz-cnic
added a commit
that referenced
this issue
Oct 6, 2017
Dexus
pushed a commit
that referenced
this issue
Oct 7, 2017
Dexus
pushed a commit
that referenced
this issue
Oct 7, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
somewhere between pem v1.9.7 and 1.12.0 had been a breaking change.
I expect this to be a result of switching to the password file logic.
I upgraded our internal library to pem's most current release and tests are failing.
I'll try to figure out the reason and where it happens.
I'll keep this issue updated. From my first impression it looks like that in the past some error might be returned in case a password was required, but not provided.
Method: readPkcs12
tracked this further down:
args stays unchanged in case given password is empty, in version 1.9.7 args included:
'-passin', 'pass:' + options.p12Password
.The main reason seems to be the line
if (options.p12Password) {
which wouldn't be truthy in case of an empty string.
and in case that line is commented out, the helper method also doesn't change anything because this line would then lead to return false
In case I fix both parts as necessary, it looks like an empty file is not allowed/recognized as password input. Thus it must be handled in the way of mustPass option.
Best
Kai
The text was updated successfully, but these errors were encountered: