Remove CA path from config dir.

This commit is contained in:
xenolf 2015-09-26 20:00:19 +02:00
parent 37b20117bf
commit 0f32c176d7
3 changed files with 32 additions and 42 deletions

View file

@ -31,7 +31,7 @@ func (c *Configuration) OptPort() string {
// ServerPath returns the OS dependent path to the data for a specific CA
func (c *Configuration) ServerPath() string {
srv, _ := url.Parse(c.context.GlobalString("server"))
srvStr := strings.Replace(srv.Host, ":", "_", -1) + srv.Path
srvStr := strings.Replace(srv.Host, ":", "_", -1)
return strings.Replace(srvStr, "/", string(os.PathSeparator), -1)
}