spomky-labs/pki-framework
PHP 8.1+ framework for PKI: X.509 certificates, ASN.1 (X.690 DER) encoding/decoding, X.501/X.520 DN parsing, PEM (RFC 7468) support, and cryptographic/PKCS-related ASN.1 types. mbstring required; gmp/bcmath recommended.
openssl CLI, Python cryptography, or Java Bouncy Castle) with a unified PHP API in Laravel. Accelerate development of certificate-related features (e.g., OAuth, JWT validation, or custom auth systems like Sanctum/Passport).1.3.6.1.4.1.34342.1.1) without vendor limitations. Useful for niche industries (e.g., healthcare, finance) with unique compliance requirements.openssl commands.php artisan pki:rotate --days=30).id-ce-privateKey).openssl), Python cryptography, or Java Bouncy Castle, reducing context-switching.ext-openssl instead).ext-openssl or Rust-based solutions like rustls for bulk operations).certbot, lego, or cloud PKI APIs like AWS ACM).step-ca, Java’s Bouncy Castle, or Rust’s ring/webpki).phpseclib or hybrid approaches).*"This open-source PKI framework lets us own our certificate infrastructure, cutting costs and risks while enabling new security features. Here’s the business case:
Risk Mitigation:
openssl commands with Laravel APIs (3-month effort).*"This package provides a PHP-native PKI toolkit to replace fragmented workflows (e.g., openssl CLI, Python cryptography) with a unified Laravel API. Key benefits:
Certificate::create(['CN' => 'api.example.com', 'SAN' => ['dns:*.example.com']]).1.3.6.1.4.1.34342.1.1).gmp/bcmath for cryptography).openssl CLI.config['pki']['private_key']).Implementation Plan:
ext-openssl and validate core use cases (e.g., certificate generation/validation).php artisan pki:rotate).Dependencies:
mbstring (no gmp/bcmath for basic ASN.1 parsing).brick/math for cryptographic operations (included as a dependency).Alternatives Considered:
ext-openssl: Less flexible for custom validation.How can I help you explore Laravel packages today?