stoakes/kmip-php
Composer 安装命令:
composer require stoakes/kmip-php
包简介
README 文档
README
The first KMIP client library for PHP
Usage
Install the package:
composer require stoakes/kmip-php
Use it:
<?php use Stoakes\Kmip\BaseClient; use Stoakes\Kmip\Enum\CryptographicAlgorithm; use Stoakes\Kmip\Enum\RevocationReasonCode; require __DIR__ . '/vendor/autoload.php'; $client = new BaseClient('localhost', 5696, './server.crt', './server.key', './ca.crt', '2.0' ); $client->connect(); $response = $client->createSymmetricKey(CryptographicAlgorithm::AES, 256); $keyId = $response->batchItem[0]->responsePayload->uniqueIdentifier; $response = $client->activate($keyId); $response = $client->get($keyId); $response = $client->revoke($keyId, RevocationReasonCode::CessationOfOperation); $response = $client->destroy($keyId); $client->disconnect();
统计信息
- 总下载量: 1
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2024-12-02