Skip to main content

SSH Key Conversion Utility

Project description

ssh-keyconv

ssh-keyconv is a SSH key conversion utility that can convert SSH private keys between OpenSSH, PEM and DER encoding, and OpenSSH, PKCS8 and Traditional OpenSSL format.

Supported Formats:

  • OpenSSH
  • PKCS8
  • Traditional OpenSSL (trad-openssl)

Supported Encodings:

  • PEM
  • OpenSSH (PEM)
  • DER

Installation

pip install ssh_keyconv

This will install the ssh_keyconv module and the ssh-keyconv executable.

Example usage

  1. Generate a SSH keypair
ssh-keygen -t rsa -b 4096 -f newkey_rsa
  1. Convert the private key to PKCS8 format
ssh-keyconv -i newkey_rsa -f openssh -e openssh -o newkey_rsa.pem -F pkcs8 -E pem

Development

  1. Clone the repo
git clone https://codeberg.org/lkm35t/ssh-keyconf
  1. Set up a virtualenv
cd ssh-keyconv
make setup
  1. Run tests
make test
  1. Bump the version number in ssh_keyconv/__init__.py:__version__

  2. Build a release

make clean build
  1. Do a test publish
make publish-test
  1. Verify the test publish
make verify-publish-test
  1. Publish to PyPI
make publish
  1. Verify the publish to PyPI
make test-publish

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ssh_keyconv-0.9.0.tar.gz (9.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ssh_keyconv-0.9.0-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

Details for the file ssh_keyconv-0.9.0.tar.gz.

File metadata

  • Download URL: ssh_keyconv-0.9.0.tar.gz
  • Upload date:
  • Size: 9.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for ssh_keyconv-0.9.0.tar.gz
Algorithm Hash digest
SHA256 b6d6b05642d5b61c8fa721ffade3c47fbdffe3ef73e4fe2bf046dc488a2d43de
MD5 9df7bde3af2b3b3952c34acd4dc36032
BLAKE2b-256 3d092128b04f5714a216c8287966c989f23ab4b8454415f493efbf70f31a9277

See more details on using hashes here.

File details

Details for the file ssh_keyconv-0.9.0-py3-none-any.whl.

File metadata

  • Download URL: ssh_keyconv-0.9.0-py3-none-any.whl
  • Upload date:
  • Size: 5.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for ssh_keyconv-0.9.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f3a0ef2b3ebc5a9b32ead9bc4c20312b9d0a68ff091c2e8898bb2a57704b6942
MD5 51af0253b8b4c33597a13c40587e574c
BLAKE2b-256 08b837212218d6718bee6e04a28b0c11893c94b245c6cff398ac2de6f7cf691b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page