diff --git a/src/server/host.rs b/src/server/host.rs index 2144404..ebfa526 100644 --- a/src/server/host.rs +++ b/src/server/host.rs @@ -84,7 +84,6 @@ impl IntoResponse for SignKeyError { struct SignKeyRequest { hostname: String, pubkey: Vec, - aliases: Vec, } pub(super) async fn sign_host_cert( @@ -100,7 +99,6 @@ pub(super) async fn sign_host_cert( Some("pubkey") => { body.pubkey = field.bytes().await?.into(); } - Some("alias") => body.aliases.push(field.text().await?), Some("hostname") => body.hostname = field.text().await?, Some(n) => { warn!("Client request included unsupported field {:?}", n); @@ -111,7 +109,6 @@ pub(super) async fn sign_host_cert( if body.pubkey.is_empty() { return Err(SignKeyError::NoKey); } - let aliases: Vec<_> = body.aliases.iter().map(String::as_ref).collect(); let config = &ctx.config; let duration = Duration::from_secs(config.ca.host.cert_duration); @@ -140,7 +137,7 @@ pub(super) async fn sign_host_cert( hostname ); let cert = - ca::sign_cert(&hostname, &pubkey, duration, &privkey, &aliases)?; + ca::sign_cert(&hostname, &pubkey, duration, &privkey, &[])?; info!( "Signed {} key for {}", pubkey.algorithm().as_str(),