PHP code example of protonlabs / x509-sign
1. Go to this page and download the library: Download protonlabs/x509-sign library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
protonlabs / x509-sign example snippets
use Proton\X509Sign\Issuer;
use phpseclib3\Crypt\RSA\PrivateKey;
use phpseclib3\Crypt\RSA\PublicKey;
$issuer = new Issuer();
$issuer->issue(
PrivateKey::load('-----BEGIN...'),
PublicKey::load('-----BEGIN...'),
['commonName' => 'foo'],
['commonName' => 'bar'],
'9256',
);
POST /
POST /
POST /
POST /