diff --git a/README.md b/README.md index 9d31f28..47b818a 100644 --- a/README.md +++ b/README.md @@ -45,6 +45,7 @@ A push notification server using [Gin](https://github.com/gin-gonic/gin) framewo * Support `/api/stat/app` show notification success and failure counts. * Support `/api/config` show your [YAML](https://en.wikipedia.org/wiki/YAML) config. * Support store app stat to memory, [Redis](http://redis.io/) or [BoltDB](https://github.com/boltdb/bolt). +* Support `p12` or `pem` formtat of iOS certificate file. See the [YAML config example](config/config.yml): diff --git a/gorush/notification.go b/gorush/notification.go index eb7d12e..ba62c99 100644 --- a/gorush/notification.go +++ b/gorush/notification.go @@ -154,8 +154,6 @@ func InitAPNSClient() error { err = errors.New("Wrong Certificate key extension.") } - // CertificatePemIos, err = certificate.FromPemFile(PushConf.Ios.PemPath, PushConf.Ios.Password) - if err != nil { LogError.Error("Cert Error:", err.Error())