Skip to content

Commit

Permalink
Fix existing SSL asset detection
Browse files Browse the repository at this point in the history
  • Loading branch information
bobheadxi committed May 26, 2018
1 parent ddc0e53 commit 9855ac4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion daemon/inertiad/daemon.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ func run(host, port, version, keyPath, certDir, userDir string) {
keyNotPresent := os.IsNotExist(err)

// If they are not available, generate new ones.
if !(keyNotPresent && certNotPresent) {
if keyNotPresent && certNotPresent {
println("No certificates found - generating new ones...")
err = auth.GenerateCertificate(daemonSSLCert, daemonSSLKey, host+":"+port, "RSA")
if err != nil {
Expand Down

0 comments on commit 9855ac4

Please sign in to comment.