Клиент NCANode для PHP
Установка производится через composer. Для установки наберите команду в директории вашего php проекта:
composer require malikzh/php-ncanode
$nca = new \Malikzh\PhpNCANode\NCANodeClient('http://127.0.0.1:14579');
$response = $nca->pkcs12Info(p12Base64: $cert, sPassword: 'AAaa1234');
$response->raw();
$response = $nca->pkcs12InfoBulk(p12s: [
[
'key' => $p12_1,
'password' => 'AAaa1234'
],
[
'key' => $p12_2,
'password' => 'AAaa1234'
],
# ...
], revocationCheck: ['OCSP'], alias: null);
$response = $nca->pkcs12AliasInfo(p12Base64: $p12, sPassword: 'AAaa1234');
$response = $nca->pkcs12AliasesInfoBulk(p12s: [
[
'key' => $p12,
'password' => 'AAaa1234'
],
# ...
]);
$nca->cmsSign(string $base64data, string $p12, string $certPassword);
$nca->cmsBulkSign(string $base64data, string $p12s);
$nca->cmsSignAdd(string $base64data, string $cmsFilebase64, string $p12, string $certPassword);
$nca->cmsVerify(string $base64data)->isValid();
$nca->cmsExtract($cmsFileBase64);
- Malik Zharykov - Initial work
- Rustem Kaimolla - updated works
- Rakhat Bakytzhanov - updated works
Проект лицензирован под лицензией MIT