Closed FabianDat closed 5 years ago
OpenSSH uses its own format for public keys, but you can convert the file by doing this:
ssh-keygen -f publickey.pub -i -mPKCS8
And by the way, if you uncheck "PEM" the export format is binary SubjectPublicKeyInfo as defined in RFC 5280.
The exported public key of a key pair is not readable by cat on mac os x. Same issue, if a Windows 10 user is exporting a key. I created a RSA Key Pair with size 2048, version 3 and SHA-256. Result:
?0?0 *?H?? ????>O?m?2 h?11??]?U?q??T?3?4}? )l/?\4?E ???lr?3????/?{U[@?OP?????{??7?V?u?2?)z)cFxK⛫???,G8ˮ x?試ud???(?X?3?^???%b?? w|?????W???)????r0??????thv]ޱ???U?????G??kc?8??1c?!?j??v????'???yמּvJ?????ŎLw???h??-?? }4??[??O?
Steps to reproduce the behavior:
Expected an output like:
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQD...... fabiand@MacBook-Pro.local
Version of KSE: 5.4.1 Version of Java: 1.8.0_201 Platform (OS): Mac OS X Version 10.12.6 (x86_64)