Description

FromPemFile loads a PEM certificate from a local file and returns a tls.Certificate. This function is similar to the crypto/tls LoadX509KeyPair function, however it supports PEM files with the cert and key combined in the same file, as well as password protected key files which are both common with APNs certificates.

Use "" as the password argument if the PEM certificate is not password protected.

FromPemFile is referenced in 3 repositories

github.com/sideshow/apns2 github.com/appleboy/gorush github.com/kyuns/apns2-demo