From 4c63b612450c4e1fb182ef4f928b959e9c440c5f Mon Sep 17 00:00:00 2001 From: Alex Collins Date: Sat, 25 Feb 2023 12:38:19 +0000 Subject: [PATCH] https-tls: typo - correct URIs to use https (#606) --- https-tls/openssl-auto-le/src/main.rs | 2 +- https-tls/openssl/src/main.rs | 2 +- https-tls/rustls-client-cert/src/main.rs | 2 +- https-tls/rustls/src/main.rs | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/https-tls/openssl-auto-le/src/main.rs b/https-tls/openssl-auto-le/src/main.rs index dfa08c48..bbb4be1d 100644 --- a/https-tls/openssl-auto-le/src/main.rs +++ b/https-tls/openssl-auto-le/src/main.rs @@ -173,7 +173,7 @@ async fn main() -> anyhow::Result<()> { // Storing pkey_der, cert_der and intermediate_cert somewhere // (in order to avoid unnecessarily regeneration of TLS/SSL) is recommended - log::info!("starting HTTP server at http://localhost:443"); + log::info!("starting HTTP server at https://localhost:443"); // Start HTTP server! let srv = HttpServer::new(|| App::new().route("/", web::get().to(index))) diff --git a/https-tls/openssl/src/main.rs b/https-tls/openssl/src/main.rs index 64a7b0ca..e7388b6c 100644 --- a/https-tls/openssl/src/main.rs +++ b/https-tls/openssl/src/main.rs @@ -16,7 +16,7 @@ async fn main() -> io::Result<()> { std::env::set_var("RUST_LOG", "actix_web=debug"); env_logger::init(); - println!("Started http server: 127.0.0.1:8443"); + println!("Started http server: https://127.0.0.1:8443"); // load TLS keys let mut builder = SslAcceptor::mozilla_intermediate(SslMethod::tls()).unwrap(); diff --git a/https-tls/rustls-client-cert/src/main.rs b/https-tls/rustls-client-cert/src/main.rs index fed7c46f..5c7b1fce 100644 --- a/https-tls/rustls-client-cert/src/main.rs +++ b/https-tls/rustls-client-cert/src/main.rs @@ -103,7 +103,7 @@ async fn main() -> std::io::Result<()> { .collect(); let config = config.with_single_cert(cert_chain, keys.remove(0)).unwrap(); - log::info!("starting HTTP server at http://localhost:8080 and http://localhost:8443"); + log::info!("starting HTTP server at http://localhost:8080 and https://localhost:8443"); HttpServer::new(|| App::new().default_service(web::to(route_whoami))) .on_connect(get_client_cert) diff --git a/https-tls/rustls/src/main.rs b/https-tls/rustls/src/main.rs index c1d32864..3e080a24 100644 --- a/https-tls/rustls/src/main.rs +++ b/https-tls/rustls/src/main.rs @@ -26,7 +26,7 @@ async fn main() -> std::io::Result<()> { let config = load_rustls_config(); - log::info!("starting HTTPS server at http://localhost:8443"); + log::info!("starting HTTPS server at https://localhost:8443"); HttpServer::new(|| { App::new()