EnglishFrenchSpanish

OnWorks favicon

openpgp2spki - Online in the Cloud

Run openpgp2spki in OnWorks free hosting provider over Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

This is the command openpgp2spki that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

PROGRAM:

NAME


openpgp2ssh — translate OpenPGP keys to SSH keys

SYNOPSIS


openpgp2ssh < mykey.gpg

gpg --export $KEYID | openpgp2ssh $KEYID

gpg --export $KEYID | openpgp2pem $KEYID

gpg --export $KEYID | openpgp2spki $KEYID

gpg --export-secret-key $KEYID | openpgp2ssh $KEYID

DESCRIPTION


openpgp2ssh takes an OpenPGP-formatted primary key and associated subkeys on standard input,
and spits out the requested equivalent SSH-style (or PEM-encoded) key on standard output.

If the data on standard input contains no subkeys, you can invoke openpgp2ssh without
arguments. If the data on standard input contains multiple keys (e.g. a primary key and
associated subkeys), you must specify a specific OpenPGP key identifier as the first
argument to indicate which key to export. The key ID is normally the 40 hex digit OpenPGP
fingerprint of the key or subkey desired, but openpgp2ssh will accept as few as the last 8
digits of the fingerprint as a key ID.

If the input contains an OpenPGP RSA public key, it will be converted to the OpenSSH-style
single-line keystring, prefixed with the key type (`ssh-rsa'). This format is suitable
(with minor alterations) for insertion into known_hosts files and authorized_keys files. If
invoked as `openpgp2pem', a PEM-encoded public key will be emitted instead.

If invoked as `openpgp2spki', a PEM-encoded subjectPublicKeyInfo (as defined in the X.509
standard) will be emitted instead.

If the input contains an OpenPGP RSA secret key, it will be converted to the equivalent PEM-
encoded private key.

openpgp2ssh is part of the monkeysphere(7) framework for providing a PKI for SSH.

CAVEATS


The keys produced by this process are stripped of all identifying information, including
certifications, self-signatures, etc. This is intentional, since ssh attaches no inherent
significance to these features.

openpgp2ssh will produce output for any requested RSA key. This means, among other things,
that it will happily export revoked keys, unverifiable keys, expired keys, etc. Make sure
you do your own key validation before using this tool!

EXAMPLES


gpg --export-secret-key $KEYID | openpgp2ssh $KEYID | ssh-add -c /dev/stdin

This pushes the secret key into the active ssh-agent(1). Tools such as ssh(1) which know
how to talk to the ssh-agent(1) can now rely on the key.

Use openpgp2spki online using onworks.net services


Free Servers & Workstations

Download Windows & Linux apps

  • 1
    KDiff3
    KDiff3
    This repository is no longer maintained
    and is kept for archival purposes. See
    https://invent.kde.org/sdk/kdiff3 for
    the newest code and
    https://download.kde.o...
    Download KDiff3
  • 2
    USBLoaderGX
    USBLoaderGX
    USBLoaderGX is a GUI for
    Waninkoko's USB Loader, based on
    libwiigui. It allows listing and
    launching Wii games, Gamecube games and
    homebrew on Wii and WiiU...
    Download USBLoaderGX
  • 3
    Firebird
    Firebird
    Firebird RDBMS offers ANSI SQL features
    & runs on Linux, Windows &
    several Unix platforms. Features
    excellent concurrency & performance
    & power...
    Download Firebird
  • 4
    KompoZer
    KompoZer
    KompoZer is a wysiwyg HTML editor using
    the Mozilla Composer codebase. As
    Nvu's development has been stopped
    in 2005, KompoZer fixes many bugs and
    adds a f...
    Download KompoZer
  • 5
    Free Manga Downloader
    Free Manga Downloader
    The Free Manga Downloader (FMD) is an
    open source application written in
    Object-Pascal for managing and
    downloading manga from various websites.
    This is a mirr...
    Download Free Manga Downloader
  • 6
    UNetbootin
    UNetbootin
    UNetbootin allows you to create bootable
    Live USB drives for Ubuntu, Fedora, and
    other Linux distributions without
    burning a CD. It runs on Windows, Linux,
    and ...
    Download UNetbootin
  • More »

Linux commands

  • 1
    abc2abc
    abc2abc
    abc2abc - a simple abc
    checker/re-formatter/transposer ...
    Run abc2abc
  • 2
    abc2ly
    abc2ly
    abc2ly - manual page for abc2ly
    (LilyPond) 2.18.2 ...
    Run abc2ly
  • 3
    coqdoc
    coqdoc
    coqdoc - A documentation tool for the
    Coq proof assistant ...
    Run coqdoc
  • 4
    coqide
    coqide
    coqide - The Coq Proof Assistant
    graphical interface ...
    Run coqide
  • 5
    g.gui.vdigitgrass
    g.gui.vdigitgrass
    g.gui.vdigit - Interactive editing and
    digitization of vector maps. KEYWORDS:
    general, user interface, GUI, vector,
    editing, digitizer ...
    Run g.gui.vdigitgrass
  • 6
    g.listgrass
    g.listgrass
    g.list - Lists available GRASS data
    base files of the user-specified data
    type optionally using the search
    pattern. KEYWORDS: general, map
    management, list ...
    Run g.listgrass
  • More »

Ad