GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
PEM(1) FreeBSD General Commands Manual PEM(1)

pemdecode, pemencode - encode files in Privacy Enhanced Mail (PEM) format

auth/pemdecode section [ file ]

auth/pemencode section [ file ]

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 between 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

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.

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
% 
    

/src/cmd/auth


Search for    or go to Top of page |  Section 1 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.