aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/config.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/config.rs b/src/config.rs
index 6c2d978..8976d35 100644
--- a/src/config.rs
+++ b/src/config.rs
@@ -199,7 +199,9 @@ impl MiniserveConfig {
.context("Reading private key file")?
.into_iter()
.find_map(|item| match item {
- pemfile::Item::RSAKey(key) | pemfile::Item::PKCS8Key(key) => Some(key),
+ pemfile::Item::RSAKey(key)
+ | pemfile::Item::PKCS8Key(key)
+ | pemfile::Item::ECKey(key) => Some(key),
_ => None,
})
.ok_or_else(|| anyhow!("No supported private key in file"))?;