Stateless OpenPGP Command Line Interface
draft-dkg-openpgp-stateless-cli-00

The information below is for an old version of the document
Document Type Active Internet-Draft (individual)
Last updated 2019-10-28
Stream (None)
Intended RFC status (None)
Formats pdf htmlized bibtex
Stream Stream state (No stream defined)
Consensus Boilerplate Unknown
RFC Editor Note (None)
IESG IESG state I-D Exists
Telechat date
Responsible AD (None)
Send notices to (None)
openpgp                                                       D. Gillmor
Internet-Draft                                                      ACLU
Intended status: Informational                          October 28, 2019
Expires: April 30, 2020

                Stateless OpenPGP Command Line Interface
                   draft-dkg-openpgp-stateless-cli-00

Abstract

   This document defines a generic stateless command-line interface for
   dealing with OpenPGP messages, known as "sop".  It aims for a
   minimal, well-structured API for dealing with OpenPGP object
   security.

Status of This Memo

   This Internet-Draft is submitted in full conformance with the
   provisions of BCP 78 and BCP 79.

   Internet-Drafts are working documents of the Internet Engineering
   Task Force (IETF).  Note that other groups may also distribute
   working documents as Internet-Drafts.  The list of current Internet-
   Drafts is at https://datatracker.ietf.org/drafts/current/.

   Internet-Drafts are draft documents valid for a maximum of six months
   and may be updated, replaced, or obsoleted by other documents at any
   time.  It is inappropriate to use Internet-Drafts as reference
   material or to cite them other than as "work in progress."

   This Internet-Draft will expire on April 30, 2020.

Copyright Notice

   Copyright (c) 2019 IETF Trust and the persons identified as the
   document authors.  All rights reserved.

   This document is subject to BCP 78 and the IETF Trust's Legal
   Provisions Relating to IETF Documents
   (https://trustee.ietf.org/license-info) in effect on the date of
   publication of this document.  Please review these documents
   carefully, as they describe your rights and restrictions with respect
   to this document.  Code Components extracted from this document must
   include Simplified BSD License text as described in Section 4.e of
   the Trust Legal Provisions and are provided without warranty as
   described in the Simplified BSD License.

Gillmor                  Expires April 30, 2020                 [Page 1]
Internet-Draft  Stateless OpenPGP Command Line Interface    October 2019

Table of Contents

   1.  Introduction  . . . . . . . . . . . . . . . . . . . . . . . .   3
     1.1.  Requirements Language . . . . . . . . . . . . . . . . . .   3
     1.2.  Terminology . . . . . . . . . . . . . . . . . . . . . . .   4
   2.  Examples  . . . . . . . . . . . . . . . . . . . . . . . . . .   4
   3.  Subcommands . . . . . . . . . . . . . . . . . . . . . . . . .   4
     3.1.  Version Information . . . . . . . . . . . . . . . . . . .   5
     3.2.  Generate a Secret Key . . . . . . . . . . . . . . . . . .   5
     3.3.  Convert a Secret Key to a Certificate . . . . . . . . . .   5
     3.4.  Create a Detached Signature . . . . . . . . . . . . . . .   5
     3.5.  Verify a Detached Signature . . . . . . . . . . . . . . .   5
     3.6.  Encrypt a Message . . . . . . . . . . . . . . . . . . . .   6
     3.7.  Decrypt a Message . . . . . . . . . . . . . . . . . . . .   7
     3.8.  Adding ASCII Armor  . . . . . . . . . . . . . . . . . . .   8
     3.9.  Removing ASCII Armor  . . . . . . . . . . . . . . . . . .   9
   4.  Input/Output Indirect Types . . . . . . . . . . . . . . . . .   9
     4.1.  CERT  . . . . . . . . . . . . . . . . . . . . . . . . . .   9
     4.2.  KEY . . . . . . . . . . . . . . . . . . . . . . . . . . .   9
     4.3.  CIPHERTEXT  . . . . . . . . . . . . . . . . . . . . . . .   9
     4.4.  SIGNATURE . . . . . . . . . . . . . . . . . . . . . . . .  10
     4.5.  SESSIONKEY  . . . . . . . . . . . . . . . . . . . . . . .  10
     4.6.  PASSWORD  . . . . . . . . . . . . . . . . . . . . . . . .  11
     4.7.  VERIFICATIONS . . . . . . . . . . . . . . . . . . . . . .  11
     4.8.  DATA  . . . . . . . . . . . . . . . . . . . . . . . . . .  11
   5.  Failure modes . . . . . . . . . . . . . . . . . . . . . . . .  11
   6.  Guidance for Implementors . . . . . . . . . . . . . . . . . .  12
     6.1.  One OpenPGP Message At a Time . . . . . . . . . . . . . .  12
     6.2.  Simplified Subset of OpenPGP Message  . . . . . . . . . .  12
     6.3.  Validate Signatures Only From Known Signers . . . . . . .  13
     6.4.  Detached Signatures . . . . . . . . . . . . . . . . . . .  13
     6.5.  Reliance on Supplied Certs and Keys . . . . . . . . . . .  13
   7.  Guidance for Consumers  . . . . . . . . . . . . . . . . . . .  13
   8.  Security Considerations . . . . . . . . . . . . . . . . . . .  14
     8.1.  Signature Verification  . . . . . . . . . . . . . . . . .  14
     8.2.  Compression . . . . . . . . . . . . . . . . . . . . . . .  15
   9.  Privacy Considerations  . . . . . . . . . . . . . . . . . . .  15
     9.1.  Object Security vs. Transport Security  . . . . . . . . .  15
   10. Document Considerations . . . . . . . . . . . . . . . . . . .  15
     10.1.  Document History . . . . . . . . . . . . . . . . . . . .  16
     10.2.  Future Work  . . . . . . . . . . . . . . . . . . . . . .  16
Show full document text