Documentation

PKCS8.php

PKCS#8 Formatted Key Handler

PHP version 5

Used by PHP's openssl_public_encrypt() and openssl's rsautl (when -pubin is set)

Processes keys with the following headers:

-----BEGIN ENCRYPTED PRIVATE KEY----- -----BEGIN PRIVATE KEY----- -----BEGIN PUBLIC KEY-----

Analogous to ssh-keygen's pkcs8 format (as specified by -m). Although PKCS8 is specific to private keys it's basically creating a DER-encoded wrapper for keys. This just extends that same concept to public keys (much like ssh-keygen)

Tags
category

Crypt

author

Jim Wigginton terrafrost@php.net

copyright

2015 Jim Wigginton

license

http://www.opensource.org/licenses/mit-license.html MIT License

link
http://phpseclib.sourceforge.net

Table of Contents

Classes

PKCS8
PKCS#8 Formatted Key Handler

        
On this page

Search results