Skip to content
This repository has been archived by the owner on Jan 16, 2024. It is now read-only.

Latest commit

 

History

History
49 lines (35 loc) · 1.22 KB

README.md

File metadata and controls

49 lines (35 loc) · 1.22 KB

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