A PHP Library that allows you to decode ASN.1 CMS using Basic Encoding Rules (BER)
composer require adapik/cms
This package allow to convert common cryptographic structures from binary ASN.1 format to PHP Objects.
- CMS (according to RFC3852)
- CAdES (according to RFC5126)
- x.509 Certificates, CRLs (according to RFC 5280)
- etc.
This is a pure PHP library and does not require any cryptographic extensions (like ext-openssl) to be installed.
You can find examples, how to use this library here
You can create your own Map (see examples under Adapik\CMS\Maps
namespace) and Object (see examples under Adapik\CMS
namespace) and decode any ASN.1 structure.
It's not a tool to create or validate CMS or CAdES, but you can build your own tool, using objects from this library.