diff --git a/main.go b/main.go index 1004b2a..9d3b71f 100644 --- a/main.go +++ b/main.go @@ -15,19 +15,23 @@ import ( ) var ( - fileSrvHost string - fileSrvPort string + hostname string + fileSrvHost string + fileSrvPort string + certificatePath string ) func init() { + flag.StringVar(&hostname, "hostname", "", "capsule hostname") + flag.StringVar(&certificatePath, "certificatePath", "", "capsule certificate path") flag.StringVar(&fileSrvHost, "fileSrvHost", "", "file push server host") flag.StringVar(&fileSrvPort, "fileSrvPort", "", "file push server port") } func main() { certificates := &certificate.Store{} - certificates.Register("localhost") - if err := certificates.Load("/home/arnas/out/gemcert/a"); err != nil { + certificates.Register(hostname) + if err := certificates.Load(certificatePath); err != nil { log.Fatal(err) }