novatrixtech / mercurius

Mercurius gives you speed when create 'Go' applications. It lets you being focused at business.
Apache License 2.0
144 stars 27 forks source link

Add functions to get SSL Certificates files #46

Closed jeffprestes closed 4 years ago

jeffprestes commented 6 years ago

Add functions below to main.go

func getFullchainPemFilePath() string {
    fullchain := config.Cfg.Section("").Key("fullchain_path").String()
    return fullchain
}

func getPrivatekeyPemFilePath() string {
    privatekey := config.Cfg.Section("").Key("privatekey_path").String()
    return privatekey
}