AdobeDocs / adobeio-auth

Developer documentation for Adobe I/O Authentication.
MIT License
36 stars 69 forks source link

SSH Key Gen Issue on Adobe IO console #79

Open jtomlinsonMPC opened 3 years ago

jtomlinsonMPC commented 3 years ago

When creating a new project on the Adobe IO console, I generated an SSH key pair within the console and when I tried to use the private key with the @adobe-reactor/uploader module, it threw this error:

image

Generating my own key pair outside of the console works fine: https://www.adobe.io/authentication/auth-methods.html#!AdobeDocs/adobeio-auth/master/JWT/JWTCertificate.md

rychagiv commented 3 years ago

@jtomlinsonMPC, since we did not test this specific use-case it would be very helpful having any details from you. So my ask is:

jtomlinsonMPC commented 3 years ago

@rychagiv - Looks like the issue may be related to the line breaks. The broken one didn't have line breaks... the one that works looked correct with the line breaks. Screenshots below & attached private keys to compare.

Problematic Private Key (generated from IO console): image

Good Private Key (manually generated): image

problematic_private_key.txt good_private_key.txt

rychagiv commented 3 years ago

@jtomlinsonMPC , can you please check latest private key in prod. We do have line breaks there. In last prod release (last Thursday) it was fixed, sample: image

jtomlinsonMPC commented 3 years ago

@rychagiv - looks good in prod now! I just generated a key pair and I see the line breaks. Good deal. Thanks for the quick responses!