From bec9b20354736f4907b13c86ffa37e7e133e5e03 Mon Sep 17 00:00:00 2001
From: jaketaylor <jake@privategrity.com>
Date: Wed, 12 Feb 2020 16:58:08 -0800
Subject: [PATCH] fix for permissioning cert path

---
 cmd/root.go | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/cmd/root.go b/cmd/root.go
index 38e8a0d..b7341cf 100644
--- a/cmd/root.go
+++ b/cmd/root.go
@@ -57,10 +57,16 @@ var rootCmd = &cobra.Command{
 		certPath := viper.GetString("certPath")
 		keyPath := viper.GetString("keyPath")
 		localAddress := fmt.Sprintf("0.0.0.0:%d", viper.GetInt("port"))
-		fbCreds, err := utils.ExpandPath(viper.GetString("firebaseCredentialsPath"))
+		fbCreds, err := utils.ExpandPath(
+			viper.GetString("firebaseCredentialsPath"))
 		if err != nil {
 			jww.FATAL.Panicf("Unable to expand credentials path: %+v", err)
 		}
+		permissioningCert, err := utils.ExpandPath(
+			viper.GetString("permissioningCertPath"))
+		if err != nil {
+			jww.FATAL.Panicf("Unable to expand permissioning certificate path: %+v", err)
+		}
 
 		// Populate params
 		NotificationParams = notifications.Params{
@@ -86,7 +92,8 @@ var rootCmd = &cobra.Command{
 		)
 
 		// Set up the notifications server connections
-		err = setupConnection(impl, viper.GetString("permissioningCertPath"), viper.GetString("permissioningAddress"))
+		err = setupConnection(impl, permissioningCert,
+			viper.GetString("permissioningAddress"))
 		if err != nil {
 			jww.FATAL.Panicf("Failed to set up connections: %+v", err)
 		}
-- 
GitLab