@@ -87,7 +87,7 @@ public FeedbackService(string host, int port, byte[] p12FileBytes)
87
87
// The default is UserKeySet, which has caused internal encryption errors,
88
88
// Because of lack of permissions on most hosting services.
89
89
// So MachineKeySet should be used instead.
90
- certificate = new X509Certificate2 ( p12FileBytes , "" , X509KeyStorageFlags . MachineKeySet | X509KeyStorageFlags . PersistKeySet | X509KeyStorageFlags . Exportable ) ;
90
+ certificate = new X509Certificate2 ( p12FileBytes , null , X509KeyStorageFlags . MachineKeySet | X509KeyStorageFlags . PersistKeySet | X509KeyStorageFlags . Exportable ) ;
91
91
ConnectAttempts = 3 ;
92
92
ReconnectDelay = 10000 ;
93
93
}
@@ -126,7 +126,7 @@ public FeedbackService(string host, int port, byte[] p12FileBytes, string p12Fil
126
126
// The default is UserKeySet, which has caused internal encryption errors,
127
127
// Because of lack of permissions on most hosting services.
128
128
// So MachineKeySet should be used instead.
129
- certificate = new X509Certificate2 ( p12FileBytes , p12FilePassword ?? "" , X509KeyStorageFlags . MachineKeySet | X509KeyStorageFlags . PersistKeySet | X509KeyStorageFlags . Exportable ) ;
129
+ certificate = new X509Certificate2 ( p12FileBytes , p12FilePassword , X509KeyStorageFlags . MachineKeySet | X509KeyStorageFlags . PersistKeySet | X509KeyStorageFlags . Exportable ) ;
130
130
P12FilePassword = p12FilePassword ;
131
131
ConnectAttempts = 3 ;
132
132
ReconnectDelay = 10000 ;
@@ -160,7 +160,7 @@ public FeedbackService(bool sandbox, byte[] p12FileBytes)
160
160
// The default is UserKeySet, which has caused internal encryption errors,
161
161
// Because of lack of permissions on most hosting services.
162
162
// So MachineKeySet should be used instead.
163
- certificate = new X509Certificate2 ( p12FileBytes , "" , X509KeyStorageFlags . MachineKeySet | X509KeyStorageFlags . PersistKeySet | X509KeyStorageFlags . Exportable ) ;
163
+ certificate = new X509Certificate2 ( p12FileBytes , null , X509KeyStorageFlags . MachineKeySet | X509KeyStorageFlags . PersistKeySet | X509KeyStorageFlags . Exportable ) ;
164
164
ConnectAttempts = 3 ;
165
165
}
166
166
@@ -196,7 +196,7 @@ public FeedbackService(bool sandbox, byte[] p12FileBytes, string p12FilePassword
196
196
// The default is UserKeySet, which has caused internal encryption errors,
197
197
// Because of lack of permissions on most hosting services.
198
198
// So MachineKeySet should be used instead.
199
- certificate = new X509Certificate2 ( p12FileBytes , p12FilePassword ?? "" , X509KeyStorageFlags . MachineKeySet | X509KeyStorageFlags . PersistKeySet | X509KeyStorageFlags . Exportable ) ;
199
+ certificate = new X509Certificate2 ( p12FileBytes , p12FilePassword , X509KeyStorageFlags . MachineKeySet | X509KeyStorageFlags . PersistKeySet | X509KeyStorageFlags . Exportable ) ;
200
200
P12FilePassword = p12FilePassword ;
201
201
ConnectAttempts = 3 ;
202
202
ReconnectDelay = 10000 ;
@@ -231,7 +231,7 @@ public void Run()
231
231
// The default is UserKeySet, which has caused internal encryption errors,
232
232
// Because of lack of permissions on most hosting services.
233
233
// So MachineKeySet should be used instead.
234
- certificate = new X509Certificate2 ( System . IO . File . ReadAllBytes ( P12File ) , P12FilePassword ?? "" , X509KeyStorageFlags . MachineKeySet | X509KeyStorageFlags . PersistKeySet | X509KeyStorageFlags . Exportable ) ;
234
+ certificate = new X509Certificate2 ( System . IO . File . ReadAllBytes ( P12File ) , P12FilePassword , X509KeyStorageFlags . MachineKeySet | X509KeyStorageFlags . PersistKeySet | X509KeyStorageFlags . Exportable ) ;
235
235
}
236
236
237
237
certificates = new X509CertificateCollection ( ) ;
0 commit comments