Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/stefanprodan/openfaas-certinfo
OpenFaaS function that returns SSL/TLS certificate information for a given URL
https://github.com/stefanprodan/openfaas-certinfo
openfaas
Last synced: 2 months ago
JSON representation
OpenFaaS function that returns SSL/TLS certificate information for a given URL
- Host: GitHub
- URL: https://github.com/stefanprodan/openfaas-certinfo
- Owner: stefanprodan
- License: mit
- Created: 2017-11-29T08:53:13.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2020-09-21T12:10:27.000Z (over 4 years ago)
- Last Synced: 2024-05-02T00:55:19.504Z (8 months ago)
- Topics: openfaas
- Language: Go
- Size: 32.2 KB
- Stars: 12
- Watchers: 3
- Forks: 4
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# openfaas-certinfo
[![Build Status](https://travis-ci.org/stefanprodan/openfaas-certinfo.svg?branch=master)](https://travis-ci.org/stefanprodan/openfaas-certinfo)
OpenFaaS function that returns SSL/TLS certificate information for a given URL
### Usage
Deploy:
```bash
$ faas-cli deploy -f ./certinfo.yml --gateway=http://
```Invoke:
```bash
$ echo -n "www.openfaas.com" | faas-cli invoke certinfo --gateway=Host 147.75.74.69
Port 443
Issuer Let's Encrypt Authority X3
CommonName www.openfaas.com
NotBefore 2017-10-06 23:54:56 +0000 UTC
NotAfter 2018-01-04 23:54:56 +0000 UTC
SANs [www.openfaas.com]
```Local build:
```bash
$ git clone https://github.com/stefanprodan/openfaas-certinfo
$ cd openfaas-certinfo
$ faas-cli build -f ./certinfo.yml
```Test local build:
```bash
$ docker run -dp 8080:8080 --name certinfo stefanprodan/certinfo
$ curl -d "cli.openfaas.com" localhost:8080Host 147.75.74.69
Port 443
Issuer Let's Encrypt Authority X3
CommonName cli.openfaas.com
NotBefore 2017-10-07 11:55:06 +0000 UTC
NotAfter 2018-01-05 11:55:06 +0000 UTC
SANs [cli.openfaas.com]
```