承接 exonet/certificate-converter 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

exonet/certificate-converter

最新稳定版本:v2.0.0

Composer 安装命令:

composer require exonet/certificate-converter

包简介

PHP package to convert an SSL certificate to various formats (e.g PKC12, PEM).

README 文档

README

PHP package to convert an SSL certificate to various formats (e.g PKC12, PEM).

Install

Via Composer

$ composer require exonet/certificate-converter

Example usage

The example below shows how combine separate contents of a certificate to a combined PEM string.

  • crt The certificate (typically the contents of .crt file).
  • key The private key (typically the contents of the .key file)
  • ca bundle The certificate of the intermediate and/or the trusted root certificate
// Initialise a new certificate converter. $converter = new Converter(); // Setup the plain format class that should be converted. $plain = new Plain(); $plain ->setKey('-----BEGIN PRIVATE KEY----- ... -----END PRIVATE KEY----- ') ->setCrt('-----BEGIN CERTIFICATE----- ... -----END CERTIFICATE----- ') ->setCaBundle('-----BEGIN CERTIFICATE----- ... -----END CERTIFICATE----- '); // Convert the plain certificate to PEM. $pem = $converter ->from($plain) ->to(new Pem()); // Save as zip file. $pem->asZip('./'); // Get an array with the certificate files: print_r($pem->asFiles()); // Get the certificate as string: print_r($pem->asString());

Change log

Please see releases for more information on what has changed recently.

统计信息

  • 总下载量: 15.83k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 3
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-01-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固