Fixed #93 Support password parameter when loads a PEM certificate from a local file.

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
Bo-Yi Wu
2016-05-30 15:53:16 +08:00
parent 6c5e4ca457
commit 919ffe6726
5 changed files with 12 additions and 1 deletions

View File

@@ -46,6 +46,7 @@ type SectionAndroid struct {
type SectionIos struct {
Enabled bool `yaml:"enabled"`
PemPath string `yaml:"pem_path"`
Password string `yaml:"password"`
Production bool `yaml:"production"`
}
@@ -106,6 +107,7 @@ func BuildDefaultPushConf() ConfYaml {
// iOS
conf.Ios.Enabled = false
conf.Ios.PemPath = "key.pem"
conf.Ios.Password = ""
conf.Ios.Production = false
// log

View File

@@ -21,6 +21,7 @@ android:
ios:
enabled: false
pem_path: "key.pem"
password: ""
production: false
log: