diff --git a/Cargo.lock b/Cargo.lock index e48b3b63..5db759f7 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -269,9 +269,9 @@ checksum = "9e1b586273c5702936fe7b7d6896644d8be71e6314cfe09d3167c95f712589e8" [[package]] name = "base64" -version = "0.21.3" +version = "0.21.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "414dcefbc63d77c526a76b3afcf6fbb9b5e2791c19c3aa2297733208750c6e53" +checksum = "35636a1494ede3b646cc98f74f8e62c773a38a659ebc777a2cf26b9b74171df9" [[package]] name = "base64ct" @@ -442,6 +442,7 @@ name = "certifier" version = "0.1.0" dependencies = [ "axum", + "base64 0.21.5", "clap 4.4.7", "config", "ed25519-dalek", @@ -1450,7 +1451,7 @@ dependencies = [ name = "initializer" version = "0.5.2" dependencies = [ - "base64 0.21.3", + "base64 0.21.5", "clap 4.4.7", "env_logger", "eyre", @@ -1931,7 +1932,7 @@ version = "3.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3163d2912b7c3b52d651a055f2c7eec9ba5cd22d26ef75b8dd3a59980b185923" dependencies = [ - "base64 0.21.3", + "base64 0.21.5", "serde", ] @@ -2643,7 +2644,7 @@ version = "1.0.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2d3987094b1d07b653b7dfdc3f70ce9a1da9c51ac18c1b06b662e4f9a0e9f4b2" dependencies = [ - "base64 0.21.3", + "base64 0.21.5", ] [[package]] @@ -2826,7 +2827,7 @@ version = "3.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "64cd236ccc1b7a29e7e2739f27c0b2dd199804abc4290e32f59f3b68d6405c23" dependencies = [ - "base64 0.21.3", + "base64 0.21.5", "chrono", "hex", "indexmap 1.9.3", @@ -3279,7 +3280,7 @@ dependencies = [ "async-stream", "async-trait", "axum", - "base64 0.21.3", + "base64 0.21.5", "bytes", "h2", "http", diff --git a/certifier/Cargo.toml b/certifier/Cargo.toml index 55bbe582..ceb2a185 100644 --- a/certifier/Cargo.toml +++ b/certifier/Cargo.toml @@ -24,3 +24,4 @@ tracing-log = "0.2.0" tracing-subscriber = { version = "0.3.17", features = ["env-filter"] } rand = "0.8.5" serde_json = "1.0.108" +base64 = "0.21.5" diff --git a/certifier/src/main.rs b/certifier/src/main.rs index 2541483a..ee504adf 100644 --- a/certifier/src/main.rs +++ b/certifier/src/main.rs @@ -1,5 +1,6 @@ use std::path::PathBuf; +use base64::{engine::general_purpose, Engine as _}; use clap::{arg, Parser, Subcommand}; use ed25519_dalek::SigningKey; use tracing::info; @@ -66,12 +67,9 @@ async fn main() -> Result<(), Box> { let config = certifier::configuration::get_configuration(&args.config_path)?; let signer = SigningKey::from_bytes(&config.signing_key); + let pubkey_b64 = general_purpose::STANDARD.encode(signer.verifying_key().as_bytes()); - info!( - "listening on: {:?}, pubkey: {:?}", - config.listen, - signer.verifying_key() - ); + info!("listening on: {:?}, pubkey: {}", config.listen, pubkey_b64,); info!("using POST configuration: {:?}", config.post_cfg); let app: axum::Router = certifier::certifier::new(config.post_cfg, signer);