Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/marco-introini/certinfo-cli

SSL Certificate check in the command line using Laravel Zero Framework
https://github.com/marco-introini/certinfo-cli

Last synced: 2 days ago
JSON representation

SSL Certificate check in the command line using Laravel Zero Framework

Awesome Lists containing this project

README

        

# Certinfo

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_ can be a PEM, CRT, CER or DER file

![](readme_img_file.png)

### Check every file in a directory

```
certinfo check:directory
```

![](readme_img_dir.png)

### Check an HTTPS Url

```
certinfo check:url
```

### Convert PEM to DER

```
certinfo convert:pem2der
```

### Convert DER to PEM

```
certinfo convert:der2pem
```

------

## 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](https://github.com/nunomaduro) and [Owen Voke](https://github.com/owenvoke), 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](https://paypal.me/marcointroini)

## License

This is an open-source software licensed under the MIT license.