apnvalidator
is a CLI utility to validate APN and PushKit certificates.
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
~> 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