stoakes/kmip-php 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

GitHub 信息

  • Stars: 2
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2024-12-02