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
    movistartv
    movistartv
    Kodi Movistar+ TV es un ADDON para XBMC/
    Kodi que permite disponer de un
    decodificador de los servicios IPTV de
    Movistar integrado en uno de los
    mediacenters ma...
    Download movistartv
  • 2
    Code::Blocks
    Code::Blocks
    Code::Blocks is a free, open-source,
    cross-platform C, C++ and Fortran IDE
    built to meet the most demanding needs
    of its users. It is designed to be very
    extens...
    Download Code::Blocks
  • 3
    Amidst
    Amidst
    Amidst or Advanced Minecraft Interface
    and Data/Structure Tracking is a tool to
    display an overview of a Minecraft
    world, without actually creating it. It
    can ...
    Download Amidst
  • 4
    MSYS2
    MSYS2
    MSYS2 is a collection of tools and
    libraries providing you with an
    easy-to-use environment for building,
    installing and running native Windows
    software. It con...
    Download MSYS2
  • 5
    libjpeg-turbo
    libjpeg-turbo
    libjpeg-turbo is a JPEG image codec
    that uses SIMD instructions (MMX, SSE2,
    NEON, AltiVec) to accelerate baseline
    JPEG compression and decompression on
    x86, x8...
    Download libjpeg-turbo
  • 6
    Xtreme Download Manager
    Xtreme Download Manager
    The project has a new home now:
    https://xtremedownloadmanager.com/ For
    developers:
    https://github.com/subhra74/xdm Xtreme
    Download Manager is a powerful tool t...
    Download Xtreme Download Manager
  • More »

Linux commands

  • 1
    acl_grant
    acl_grant
    rsbac-admin - Rule Set Based Access
    Control DESCRIPTION: rsbac-admin is a
    set of tool used to manage systems using
    a Rule Set Based Access Control (RSBAC)
    kern...
    Run acl_grant
  • 2
    acl_group
    acl_group
    rsbac-admin - Rule Set Based Access
    Control DESCRIPTION: rsbac-admin is a
    set of tool used to manage systems using
    a Rule Set Based Access Control (RSBAC)
    kern...
    Run acl_group
  • 3
    coolmail
    coolmail
    coolmail - 3D animated mail notificaion
    utility ...
    Run coolmail
  • 4
    coop-computing-tools
    coop-computing-tools
    coop-computing-tools - share resources
    in a heterogeneous, and unreliable
    computing environment DESCRIPTION: The
    Cooperative Computing Tools (cctools)
    are a co...
    Run coop-computing-tools
  • 5
    g3dviewer
    g3dviewer
    g3dviewer - a program to display and
    inspect 3D models ...
    Run g3dviewer
  • 6
    g3tolj
    g3tolj
    g3tolj - converts a Group 3 fax file
    into a printable HP-PCL file ...
    Run g3tolj
  • More »

Ad