PHP Class pharext\Openssl\PrivateKey

Show file Open project: m6w6/pharext Class Usage Examples

Public Methods

Method Description
__construct ( string $file, string $password ) Read a private key
exportPublicKey ( string $file ) Export the public key to a file
sign ( Phar $package ) Sign the PHAR

Method Details

__construct() public method

Read a private key
public __construct ( string $file, string $password )
$file string
$password string

exportPublicKey() public method

Export the public key to a file
public exportPublicKey ( string $file )
$file string

sign() public method

Sign the PHAR
public sign ( Phar $package )
$package Phar