Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
PEM(1)			    General Commands Manual			PEM(1)

NAME
       pemdecode, pemencode - encode files in Privacy Enhanced Mail (PEM) for-
       mat

SYNOPSIS
       auth/pemdecode section [	file ]

       auth/pemencode section [	file ]

DESCRIPTION
       PEM is a	textual	encoding for binary data originally used by  the  Pri-
       vacy  Enhanced  Mail  program  but now commonly used for	other applica-
       tions, notably TLS.  PEM	encodes	data in	base 64	 (see  encode(3))  be-
       tween lines of the form:

	      -----BEGIN SECTION-----
	      -----END SECTION-----

       where  SECTION may be any string	describing the encoded data.  The most
       common use of PEM format	on Plan	9 is for encoding X.509	 certificates;
       see rsa(1).

       Pemdecode  extracts  the	 named	section	and writes the decoded data to
       standard	output.

       Pemencode encodes its standard input,  labels  it  as  a	 section,  and
       writes it to standard output.

EXAMPLES
       Encode and decode a simple greeting:

	      %	echo hello world |
		   auth/pemencode GREETING
	      -----BEGIN GREETING-----
	      aGVsbG8gd29ybGQK
	      -----END GREETING-----
	      %	echo hello world |
		   auth/pemencode GREETING |
		   auth/pemdecode GREETING
	      hello world
	      %

SOURCE
       /usr/local/plan9/src/cmd/auth

SEE ALSO
       rsa(1)

									PEM(1)

NAME | SYNOPSIS | DESCRIPTION | EXAMPLES | SOURCE | SEE ALSO

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=pem&sektion=1&manpath=FreeBSD+12.1-RELEASE+and+Ports>

home | help