marco-introini / certinfo-cli
SSL Certificate check in the command line.
Installs: 14
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 1
Forks: 0
Open Issues: 6
Type:project
Requires
- php: ^8.1
- guzzlehttp/guzzle: ^7.4
- illuminate/http: ^10.0
- nunomaduro/termwind: ^1.13
- spatie/ray: ^1.36
- spatie/ssl-certificate: ^2.4
Requires (Dev)
- laravel-zero/framework: ^10
- laravel/pint: ^1.0
- mockery/mockery: ^1.4.4
- pestphp/pest: ^2
- dev-master
- v2.0.0
- v1.2.1
- v1.2
- v1.1.3
- v1.1.2
- v1.1.1
- v1.1.0
- V1.0.1
- V1.0.0
- dev-dependabot/composer/illuminate/http-10.30.1
- dev-dependabot/composer/pestphp/pest-2.24.2
- dev-dependabot/composer/laravel-zero/framework-10.3.0
- dev-dependabot/composer/laravel/pint-1.13.5
- dev-dependabot/composer/spatie/ssl-certificate-2.6.2
This package is auto-updated.
Last update: 2024-05-01 00:17:26 UTC
README
A CLI application that shows Certificate Information of single X509 certificate (PEM and DER format) or multiple certificates (check a directory)
This can also be used for converting PEM certificate to DER and vice-versa
User Installation
Global installation
You can install the binary in global composer directory:
composer global require marco-introini/certinfo-cli
Usage
All the available commands are visible using:
certinfo
Check a single file
certinfo check:file <filename>
filename can be a PEM, CRT, CER or DER file
Check every file in a directory
certinfo check:directory <directory>
Check an HTTPS Url
certinfo check:url <url>
Convert PEM to DER
certinfo convert:pem2der <filename>
Convert DER to PEM
certinfo convert:der2pem <filename>
Developer information
Inside the Makefile there is the build command to create the executable
Test
There are several test written using Pest inside the tests/Feature directory.
Before executing Pest you must generate stub certificates inside the tests/stubs directory. There is a Makefile recipe for automating everything:
make test
Thanks
This package is based on Laravel Zero.
Laravel Zero was created by Nuno Maduro and Owen Voke, and is a micro-framework that provides an elegant starting point for your console application. It is an unofficial and customized version of Laravel optimized for building command-line applications.
Support the development
If you like my work you can buy me a coffee
- via PayPal
License
This is an open-source software licensed under the MIT license.