// SSL証明書設定
try
{
StreamReader reader = new StreamReader("../config/ssl/cacert.pem", System.Text.Encoding.GetEncoding("UTF-8"));
string sslCertificateData = reader.ReadToEnd();
reader.Close();
Mrs.mrs_set_ssl_certificate_data(sslCertificateData);
}
catch
{
Mrs.mrs_console_log(Mrs.MrsLogLevel.INFO, "SSL Certificate Data is not found.");
}
try
{
StreamReader reader = new StreamReader("../config/ssl/cakey.pem", System.Text.Encoding.GetEncoding("UTF-8"));
string sslPrivateKeyData = reader.ReadToEnd();
reader.Close();
Mrs.mrs_set_ssl_private_key_data(sslPrivateKeyData);
}
catch
{
Mrs.mrs_console_log(Mrs.MrsLogLevel.INFO, "SSL Private Key Data is not found.");
}