oviva-ag / apnvalidator

apnvalidator is a CLI utility to validate Apple Push Notification and PushKit certificates.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Apple Push Notification Certificate Validator

apnvalidator is a CLI utility to validate APN and PushKit certificates.

Quickstart

Prerequisites is a valid installation of Go with installed packages in the PATH.

Install the cli utility with go:

~> go get -u github.com/oviva-ag/apnvalidator

Validate a certificate against all provided validators:

~> ./apnvalidator -validate < yourcertificate.p12

Validate a certificate against its expiry date failing already 30 days before the actual expiry:

~> ./apnvalidator -validate-expiry -expires-in-days 30 < yourcertificate.p12

Usage:

~> apnvalidator -help
Usage of apnvalidator:
  -certificate string
    	pkcs12 encoded certificate file to validate or '-' for stdin (default "-")
  -expires-in-days int
    	fail the expiry if it expires in less than <n> days
  -password string
    	password for the certificate (default "1234")
  -validate
    	validates the certificate with all supported variants
  -validate-expiry
    	validate if the certificate is expired or not valid yet
  -validate-handshake
    	try to establish a TLS connection to the APN server
  -validate-revocation-list
    	validate if the certificate is in its revocation list

About

apnvalidator is a CLI utility to validate Apple Push Notification and PushKit certificates.


Languages

Language:Go 96.7%Language:Dockerfile 3.3%