Skip to content

Commit 57cef2e

Browse files
committed
Correct the name of the TLS cert file in comments and help messages
1 parent 57d4efa commit 57cef2e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

ldk-server-cli/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ struct Cli {
5353
short,
5454
long,
5555
required(true),
56-
help = "Path to the server's TLS certificate file (PEM format). Found at <server_storage_dir>/tls_cert.pem"
56+
help = "Path to the server's TLS certificate file (PEM format). Found at <server_storage_dir>/tls.crt"
5757
)]
5858
tls_cert: String,
5959

ldk-server-client/src/client.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ const APPLICATION_OCTET_STREAM: &str = "application/octet-stream";
4242
/// Client to access a hosted instance of LDK Server.
4343
///
4444
/// The client requires the server's TLS certificate to be provided for verification.
45-
/// This certificate can be found at `<server_storage_dir>/tls_cert.pem` after the
45+
/// This certificate can be found at `<server_storage_dir>/tls.crt` after the
4646
/// server generates it on first startup.
4747
#[derive(Clone)]
4848
pub struct LdkServerClient {
@@ -57,7 +57,7 @@ impl LdkServerClient {
5757
/// `base_url` should not include the scheme, e.g., `localhost:3000`.
5858
/// `api_key` is used for HMAC-based authentication.
5959
/// `server_cert_pem` is the server's TLS certificate in PEM format. This can be
60-
/// found at `<server_storage_dir>/tls_cert.pem` after the server starts.
60+
/// found at `<server_storage_dir>/tls.crt` after the server starts.
6161
pub fn new(base_url: String, api_key: String, server_cert_pem: &[u8]) -> Result<Self, String> {
6262
let cert = Certificate::from_pem(server_cert_pem)
6363
.map_err(|e| format!("Failed to parse server certificate: {e}"))?;

0 commit comments

Comments
 (0)