@@ -93,7 +93,7 @@ public string ServerCommonName
93
93
94
94
[ Tooltip ( "Client CA filepath. Useful with self-signed certificates" ) ]
95
95
[ SerializeField ]
96
- private string m_ClientCAFilePath = "Assets/Secure/myGameClientCA.pem" ;
96
+ private string m_ClientCAFilePath = "" ; // " Assets/Secure/myGameClientCA.pem"
97
97
98
98
/// <summary>Client CA filepath. Useful with self-signed certificates</summary>
99
99
public string ClientCAFilePath
@@ -118,7 +118,7 @@ public string ClientCAOverride
118
118
119
119
[ Tooltip ( "Server Certificate filepath" ) ]
120
120
[ SerializeField ]
121
- private string m_ServerCertificateFilePath = "Assets/Secure/myGameServerCertificate.pem" ;
121
+ private string m_ServerCertificateFilePath = "" ; // " Assets/Secure/myGameServerCertificate.pem"
122
122
123
123
/// <summary>Server Certificate filepath</summary>
124
124
public string ServerCertificateFilePath
@@ -129,7 +129,7 @@ public string ServerCertificateFilePath
129
129
130
130
[ Tooltip ( "Server Private Key filepath" ) ]
131
131
[ SerializeField ]
132
- private string m_ServerPrivateFilePath = "Assets/Secure/myGameServerPrivate.pem" ;
132
+ private string m_ServerPrivateFilePath = "" ; // " Assets/Secure/myGameServerPrivate.pem"
133
133
134
134
/// <summary>Server Private Key filepath</summary>
135
135
public string ServerPrivateFilePath
@@ -174,6 +174,11 @@ public string ServerPrivate
174
174
175
175
private static string ReadFile ( string path , string label )
176
176
{
177
+ if ( path == null || path == "" )
178
+ {
179
+ return "" ;
180
+ }
181
+
177
182
var reader = new StreamReader ( path ) ;
178
183
string fileContent = reader . ReadToEnd ( ) ;
179
184
Debug . Log ( ( fileContent . Length > 1 ) ? ( "Successfully loaded " + fileContent . Length + " byte(s) from " + label ) : ( "Could not read " + label + " file" ) ) ;
0 commit comments