mirror of
https://github.com/minio/minio.git
synced 2025-01-11 15:03:22 -05:00
Merge pull request #98 from fkautz/pr_out_certificate_and_key_must_both_be_specified_or_empty_together
This commit is contained in:
commit
c3c5497d24
3
main.go
3
main.go
@ -40,6 +40,9 @@ func main() {
|
||||
log.Println(address)
|
||||
certFile := c.String("cert")
|
||||
keyFile := c.String("key")
|
||||
if (certFile != "" && keyFile == "") || (certFile == "" && keyFile != "") {
|
||||
log.Fatal("Both certificate and key must be provided to enable https")
|
||||
}
|
||||
tls := (certFile != "" && keyFile != "")
|
||||
storageType := getStorageType(storageTypeStr)
|
||||
serverConfig := server.ServerConfig{
|
||||
|
Loading…
Reference in New Issue
Block a user