aboutsummaryrefslogtreecommitdiff
path: root/man/man1/pem.1
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2005-02-13 22:02:06 +0000
committerrsc <devnull@localhost>2005-02-13 22:02:06 +0000
commita784b110f591c71c590ba1329a8240828bfb15b6 (patch)
tree4935ed0fbd6ece0902461b5d85b890c8e5dd4026 /man/man1/pem.1
parentef2eeaf3bdfd2230758fa6551aa096fb4c0e8004 (diff)
downloadplan9port-a784b110f591c71c590ba1329a8240828bfb15b6.tar.gz
plan9port-a784b110f591c71c590ba1329a8240828bfb15b6.tar.bz2
plan9port-a784b110f591c71c590ba1329a8240828bfb15b6.zip
more docs
Diffstat (limited to 'man/man1/pem.1')
-rw-r--r--man/man1/pem.165
1 files changed, 65 insertions, 0 deletions
diff --git a/man/man1/pem.1 b/man/man1/pem.1
new file mode 100644
index 00000000..2002ae11
--- /dev/null
+++ b/man/man1/pem.1
@@ -0,0 +1,65 @@
+.TH PEM 8
+.SH NAME
+pemdecode, pemencode \- encode files in Privacy Enhanced Mail (PEM) format
+.SH SYNOPSIS
+.PP
+.B auth/pemdecode
+.I section
+[
+.I file
+]
+.PP
+.B auth/pemencode
+.I section
+[
+.I file
+]
+.SH DESCRIPTION
+PEM is a textual encoding for binary data originally used by the
+Privacy Enhanced Mail program but now commonly used for
+other applications, notably TLS.
+PEM encodes data in base 64
+(see
+.IR encode (2))
+between lines of the form:
+.IP
+.EX
+-----BEGIN SECTION-----
+-----END SECTION-----
+.EE
+.LP
+where
+.B 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
+.IR rsa (8).
+.PP
+.I Pemdecode
+extracts the named
+.I section
+and writes the decoded data to standard output.
+.PP
+.I Pemencode
+encodes its standard input, labels it as a
+.IR section ,
+and writes it to standard output.
+.SH EXAMPLES
+Encode and decode a simple greeting:
+.IP
+.EX
+% echo hello world |
+ auth/pemencode GREETING
+-----BEGIN GREETING-----
+aGVsbG8gd29ybGQK
+-----END GREETING-----
+% echo hello world |
+ auth/pemencode GREETING |
+ auth/pemdecode GREETING
+hello world
+%
+.EE
+.SH SOURCE
+.B \*9/src/cmd/auth
+.SH "SEE ALSO
+.IR rsa (1)