public bool EnsureSsl(string certPath, IPEndPoint endPoint) { bool result = false; if (!File.Exists(certPath)) { try { var certificateBuilder = new SslCertificateBuilder(); result = certificateBuilder.EnsureSslCertificate(certPath, endPoint); result = File.Exists(certPath); } catch (Exception e) { Dev2Logger.Log.Error(e); } } else { result = SslCertificateBuilder.BindSslCertToPorts(endPoint, certPath); } return(result); }
public bool EnsureSsl(IFile fileWrapper, string certPath, IPEndPoint endPoint) { var result = false; if (!fileWrapper.Exists(certPath)) { try { var certificateBuilder = new SslCertificateBuilder(); certificateBuilder.EnsureSslCertificate(certPath, endPoint); result = fileWrapper.Exists(certPath); } catch (Exception e) { Dev2Logger.Error(e, GlobalConstants.WarewolfError); } } else { result = SslCertificateBuilder.BindSslCertToPorts(endPoint, certPath); } return(result); }
public bool EnsureSsl(string certPath, IPEndPoint endPoint) { bool result = false; if (!File.Exists(certPath)) { try { var certificateBuilder = new SslCertificateBuilder(); result = certificateBuilder.EnsureSslCertificate(certPath, endPoint); result = File.Exists(certPath); } catch (Exception e) { Dev2Logger.Log.Error(e); } } else { result = SslCertificateBuilder.BindSslCertToPorts(endPoint, certPath); } return result; }