PHPackages                             tourze/tls-key-format - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. tourze/tls-key-format

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

tourze/tls-key-format
=====================

TLS密钥格式处理工具，支持PEM/DER格式转换

0.0.1(11mo ago)00MITPHPPHP ^8.1CI passing

Since May 24Pushed 6mo agoCompare

[ Source](https://github.com/tourze/tls-key-format)[ Packagist](https://packagist.org/packages/tourze/tls-key-format)[ RSS](/packages/tourze-tls-key-format/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (3)Versions (2)Used By (0)

tls-key-format
==============

[](#tls-key-format)

[![PHP Version](https://camo.githubusercontent.com/acffb6ae1962992d26e4466782832787e79504a6250f80d732c4283458b9f497/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253545382e312d626c75652e737667)](https://php.net)[![License](https://camo.githubusercontent.com/8bb50fd2278f18fc326bf71f6e88ca8f884f72f179d3e555e20ed30157190d0d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d677265656e2e737667)](LICENSE)[![Build Status](https://camo.githubusercontent.com/c27a457659b89ee4f1f80f7995c559dd37f2051bde7167ad25791e5c5c92cc8e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6275696c642d70617373696e672d627269676874677265656e2e737667)](https://github.com)[![Coverage Status](https://camo.githubusercontent.com/b3545ae1bcdb4ea486f71f87b43001e82dd21933bc8035d44601706c851265da/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f636f7665726167652d3130302532352d627269676874677265656e2e737667)](https://github.com)

[English](README.md) | [中文](README.zh-CN.md)

A PHP library for handling TLS key format conversions between PEM and DER formats.

Features
--------

[](#features)

- Convert between PEM and DER formats
- Validate PEM and DER format data
- Extract key and certificate information from PEM files
- Handle certificates and private keys
- Comprehensive error handling with exceptions

Installation
------------

[](#installation)

```
composer require tourze/tls-key-format
```

Usage
-----

[](#usage)

### Basic Usage

[](#basic-usage)

```
