Skip to content
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

Output PEM public keys from openssh keys #2

Closed
mattbradbury opened this issue Apr 29, 2020 · 2 comments
Closed

Output PEM public keys from openssh keys #2

mattbradbury opened this issue Apr 29, 2020 · 2 comments
Assignees

Comments

@mattbradbury
Copy link

I'd like to not have to run this command on the command-line. The privkey is the default OpenSSH 'ssh-keygen' output.

ssh-keygen -m pem -e -f <privkey_file>

I'm not very in depth on how all the different formats work together and how to convert them, otherwise I'd do it myself and submit a PR.

Looking for this style output:
-----BEGIN RSA PUBLIC KEY-----
MIIBCgKCAQEA1oKy6WEBYp044NxRurUz+X44xW48Y6b90D7huLaJHry2yqckTxRT
mTSArFSzjrxikH0KeFaWBGNQPmhtI9+plDhJyV8S79QnMYSrZ2xD4ulqk1/SSDz6
94+Vja6i2DcHw0WBXX8VWe4PS1OCkgg3tcimOa8ZxUx6WSyqM/WFsavSSUu6lB6b
IKzOwuOxu4gsBcfFnaihKe9BhuEr7JK2vMjs8uCDDFZLuL5sPMGsOebGfyB5S/0f
oBJSut2eR2LLt9Pjq8xv5jwXXYqJkJdk5OB7IDuFiLWU3dFbtpZrW20LoYcJjtcS
+XDH4aOdGFUPhxAv5P9Oa8gV2yjOGz9uVwIDAQAB
-----END RSA PUBLIC KEY-----

Thanks.

@mattbradbury mattbradbury changed the title Output PEM public keys from openssh public keys Output PEM public keys from openssh keys Apr 29, 2020
@Leo1003
Copy link
Owner

Leo1003 commented May 8, 2020

I will try to use OpenSSL to generate the output before I find/develop a suitable PEM library on all platforms.
Sorry for the late reply. I am a bit of busy recently, and may need some times to work on it.

@Leo1003 Leo1003 self-assigned this May 8, 2020
@Leo1003
Copy link
Owner

Leo1003 commented Jul 11, 2020

On the latest 0.4 version, this feature has been implemented.

@Leo1003 Leo1003 closed this as completed Jul 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants