-
Notifications
You must be signed in to change notification settings - Fork 38
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
spark keys server key.der device.bla.com
does not work
#145
Comments
Saw a line below for checks |
Hmm, the thing that stands out most is this (since we're not appending that odd padding byte to the string I think): https://github.com/spark/spark-cli/blob/master/js/commands/KeyCommands.js#L367 Are you testing on an even length domain, or an odd length one? |
I finally got around to analyzing this more closely. This comparison makes the issue pop out. Last 2 lines of a working public server key for staging-device.spark.io
last N lines of a non working server public key generated by the spark-cli
The issue is that the generated key should end immediately after the "00" byte on line |
it sounds like the padding is indeed correct, but there is a missing null byte at the end of the domain string? -- Hmm, sorry, re-reading, I was comparing Kenneth's key to yours |
@joegoggins, the extra i just generated one using a random server public der file and i got this:
I'm on version and the command i used is |
spark keys server key.der device.bla.com
does not work correctly when using a domain name. When an IP address is specified, alaspark keys server key.der 1.2.3.4
, it works fine.The bug is likely lurking somewhere in this code.
The text was updated successfully, but these errors were encountered: