From 73e280157d90f54847d1cb86cab8d2cf20c38c1c Mon Sep 17 00:00:00 2001 From: "nicolas.dorier" Date: Thu, 20 Dec 2018 14:16:23 +0900 Subject: [PATCH] Show the gRPC cypher suites for gRPC consumption --- BTCPayServer/Controllers/ServerController.cs | 1 + .../ServerViewModels/LndGrpcServicesViewModel.cs | 2 ++ BTCPayServer/Views/Server/LndServices.cshtml | 13 ++++++++++--- 3 files changed, 13 insertions(+), 3 deletions(-) diff --git a/BTCPayServer/Controllers/ServerController.cs b/BTCPayServer/Controllers/ServerController.cs index 524c957d5..f5d61b263 100644 --- a/BTCPayServer/Controllers/ServerController.cs +++ b/BTCPayServer/Controllers/ServerController.cs @@ -520,6 +520,7 @@ namespace BTCPayServer.Controllers model.Host = $"{external.BaseUri.DnsSafeHost}:{external.BaseUri.Port}"; model.SSL = external.BaseUri.Scheme == "https"; model.ConnectionType = "GRPC"; + model.GRPCSSLCipherSuites = "ECDHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES128-SHA256"; } else if(external.ConnectionType == LightningConnectionType.LndREST) { diff --git a/BTCPayServer/Models/ServerViewModels/LndGrpcServicesViewModel.cs b/BTCPayServer/Models/ServerViewModels/LndGrpcServicesViewModel.cs index 33bffd72b..619463f35 100644 --- a/BTCPayServer/Models/ServerViewModels/LndGrpcServicesViewModel.cs +++ b/BTCPayServer/Models/ServerViewModels/LndGrpcServicesViewModel.cs @@ -13,6 +13,8 @@ namespace BTCPayServer.Models.ServerViewModels public string Macaroon { get; set; } public string RestrictedMacaroon { get; set; } public string CertificateThumbprint { get; set; } + [Display(Name = "GRPC SSL Cipher suite (GRPC_SSL_CIPHER_SUITES)")] + public string GRPCSSLCipherSuites { get; set; } public string QRCode { get; set; } public string QRCodeLink { get; set; } [Display(Name = "REST Uri")] diff --git a/BTCPayServer/Views/Server/LndServices.cshtml b/BTCPayServer/Views/Server/LndServices.cshtml index 9f547bd61..258ac1149 100644 --- a/BTCPayServer/Views/Server/LndServices.cshtml +++ b/BTCPayServer/Views/Server/LndServices.cshtml @@ -89,9 +89,16 @@ @if (Model.RestrictedMacaroon != null) { @*
- - -
*@ + + + *@ + } + @if (Model.GRPCSSLCipherSuites != null) + { +
+ + +
} @if (Model.CertificateThumbprint != null) {