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

proposal: encoding/ppk: implement PPK (Putty Private Key) encoding #63976

Closed
amiremohamadi opened this issue Nov 7, 2023 · 2 comments
Closed

Comments

@amiremohamadi
Copy link

Currently there's no support for PUTTY Keys in standard packages. I propose adding a encoding under encoding/ppk similar to encoding/pem in order to implement related functions for converting keys (e.g. rsa private key) into ppk format.

similar to encoding/pem package, Encode and Decode functions can be implemented. the implementation can be simple and straight-forward. I've implemented a POC which can give some hints:

https://gist.github.com/amiremohamadi/92bc8d749ec6d530ea59f11d701b9da2

@gopherbot gopherbot added this to the Proposal milestone Nov 7, 2023
@seankhliao
Copy link
Member

why should it be in the standard library instead of an external library?
https://go.dev/doc/faq#x_in_std

@nnzv
Copy link

nnzv commented Nov 7, 2023

Adding PuTTY key support to the standard library would introduce complexity and deviate from its core focus on widely-used functionality. PuTTY keys are essentially a specialized variation of PEM files designed for PuTTY on Windows. Additionally, PuTTYgen offers the means to convert PuTTY's PPK files to PEM format, as explained in the official PuTTY documentation in Chapter 8, Section 8.2.12, under 'Dealing with private keys in other formats': Official PuTTY Documentation.

@golang golang locked and limited conversation to collaborators Nov 10, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants