OpenFaaS function that returns SSL/TLS certificate information for a given URL
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
certinfo
.gitignore
.travis.yml
LICENSE
README.md
certinfo.yml
logo.png
stack.yml

README.md

openfaas-certinfo

Build Status

OpenFaaS function that returns SSL/TLS certificate information for a given URL

Usage

Deploy:

$ faas-cli deploy -f ./certinfo.yml --gateway=http://<GATEWAY-IP> 

Invoke:

$ echo -n "www.openfaas.com" | faas-cli invoke certinfo --gateway=<GATEWAY-IP>

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:

$ git clone https://github.com/stefanprodan/openfaas-certinfo
$ cd openfaas-certinfo
$ faas-cli build -f ./certinfo.yml

Test local build:

$ docker run -dp 8080:8080 --name certinfo stefanprodan/certinfo
$ curl -d "cli.openfaas.com" localhost:8080

Host 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]