From 377fca0bae5276877a63325c5725186614545faa Mon Sep 17 00:00:00 2001 From: Bo-Yi Wu Date: Sun, 12 Jun 2016 15:56:13 +0800 Subject: [PATCH] [ci skip] update readme. Signed-off-by: Bo-Yi Wu --- README.md | 1 + gorush/notification.go | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) 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())