Skip to content
Snippets Groups Projects
Commit bec9b203 authored by Jake Taylor's avatar Jake Taylor :lips:
Browse files

fix for permissioning cert path

parent 653ddd10
No related branches found
No related tags found
No related merge requests found
...@@ -57,10 +57,16 @@ var rootCmd = &cobra.Command{ ...@@ -57,10 +57,16 @@ var rootCmd = &cobra.Command{
certPath := viper.GetString("certPath") certPath := viper.GetString("certPath")
keyPath := viper.GetString("keyPath") keyPath := viper.GetString("keyPath")
localAddress := fmt.Sprintf("0.0.0.0:%d", viper.GetInt("port")) 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 { if err != nil {
jww.FATAL.Panicf("Unable to expand credentials path: %+v", err) 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 // Populate params
NotificationParams = notifications.Params{ NotificationParams = notifications.Params{
...@@ -86,7 +92,8 @@ var rootCmd = &cobra.Command{ ...@@ -86,7 +92,8 @@ var rootCmd = &cobra.Command{
) )
// Set up the notifications server connections // 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 { if err != nil {
jww.FATAL.Panicf("Failed to set up connections: %+v", err) jww.FATAL.Panicf("Failed to set up connections: %+v", err)
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment