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

Add PEM format to the openssh_keypair module #724

Open
Aalmain opened this issue Apr 10, 2024 · 1 comment
Open

Add PEM format to the openssh_keypair module #724

Aalmain opened this issue Apr 10, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@Aalmain
Copy link

Aalmain commented Apr 10, 2024

SUMMARY

The ssh-keygen tool has the capability of creating ssh-keys in the PEM format. Although this is not a common format, there are instances where it is required

ISSUE TYPE

Add the "PEM" format to the lost of formats under "private_key_format" in the "community.crypto.openssh_keypair"

COMPONENT NAME

Module: community.crypto.openssh_keypair
Parameter: private_key_format

ADDITIONAL INFORMATION

This would allow a more standard process to create ssh keys in the PEM format. There are applications that require this format.

An example is the Yugabyte Anywhere control plain communication to the Yugabyte Anywhere database nodes for universe deployments and updates.

- name: Generate an OpenSSH keypair for Yugabyte 
  community.crypto.openssh_keypair:
    path: /home/yugabyte/.ssh/id_ssh_pem
    prvate_key_format: pem
@Ajpantuso
Copy link
Collaborator

You probably want to use PKCS1 or PKCS8. The resulting private key will be PEM encoded.

@felixfontein felixfontein added the enhancement New feature or request label Apr 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants