Skip to content
New issue

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

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

Already on GitHub? # to your account

correct error message #12

Merged
merged 1 commit into from
Apr 13, 2015
Merged

correct error message #12

merged 1 commit into from
Apr 13, 2015

Conversation

calvinmetcalf
Copy link
Contributor

we we're throwing an error about public keys when we needed a private key

@calvinmetcalf
Copy link
Contributor Author

though node makes the same mistake

@dcousens
Copy link
Member

though node makes the same mistake

What about iojs?

dcousens added a commit that referenced this pull request Apr 13, 2015
@dcousens dcousens merged commit a013ec1 into master Apr 13, 2015
@dcousens dcousens deleted the errors branch April 13, 2015 23:37
@calvinmetcalf
Copy link
Contributor Author

It was iojs I was testing against

@dcousens
Copy link
Member

@calvinmetcalf can you make a PR upstream?

@calvinmetcalf
Copy link
Contributor Author

maybe depends if it's an issue in node/iojs (in which case yes) or one in
opnessl (in which case no)

On Mon, Apr 13, 2015 at 8:55 PM Daniel Cousens notifications@github.com
wrote:

@calvinmetcalf https://github.com/calvinmetcalf can you make a PR
upstream?


Reply to this email directly or view it on GitHub
#12 (comment)
.

@dcousens
Copy link
Member

Maybe they were the same, because in the end, both error messages would technically be correct?

@calvinmetcalf
Copy link
Contributor Author

it is a technically correct error message because it is an issue with the public key cryptosystem type, but since it uses the phrase public key by it's self when you are actually give it an incorrect private key means it implies the issues is with the public key file. Confused me to no end while I was debugging and issue that ended up being caused by passing an rsa key to something that wanted an EC one.

@dcousens
Copy link
Member

Maybe before we publish this, you should establish if this is actually
consistent with iojs. I know it sucks, but, people will rely on this being
consistent.

On Tue, Apr 14, 2015 at 11:49 PM, Calvin Metcalf notifications@github.com
wrote:

it is a technically correct error message because it is an issue with the
public key cryptosystem type, but since it uses the phrase public key by
it's self when you are actually give it an incorrect private key means it
implies the issues is with the public key file. Confused me to no end while
I was debugging and issue that ended up being caused by passing an rsa key
to something that wanted an EC one.


Reply to this email directly or view it on GitHub
#12 (comment)
.

@calvinmetcalf
Copy link
Contributor Author

this is not consistent with iojs when I said node in the second comment I meant iojs (which I was testing against)

@dcousens
Copy link
Member

@dominictarr thoughts?

@dominictarr
Copy link

If we have to choose we should be consistent with iojs. If there is a problem with iojs I am confidant we can fix it... and eventually that might get into joyent/node

@calvinmetcalf
Copy link
Contributor Author

so the issue stems from here so more or an openssl thing then a node thing

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

Successfully merging this pull request may close these issues.

3 participants