Skip to content

Commit d6c00ca

Browse files
committed
remove unnecessary deps
Signed-off-by: Marcel Guzik <marcel.guzik@cumulocity.com>
1 parent 1fc2dfc commit d6c00ca

File tree

6 files changed

+5
-15
lines changed

6 files changed

+5
-15
lines changed

Cargo.lock

Lines changed: 0 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/common/certificate/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ anyhow = { workspace = true }
1717
asn1-rs = { workspace = true }
1818
base64 = { workspace = true }
1919
camino = { workspace = true }
20-
elliptic-curve = "0.13.8"
2120
pem.workspace = true
2221
rcgen = { workspace = true }
2322
reqwest = { workspace = true, optional = true, features = [

crates/common/certificate/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,7 @@ impl KeyKind {
224224
CryptokiConfig::Direct(CryptokiConfigDirect { ref mut uri, .. }) => uri,
225225
CryptokiConfig::SocketService { ref mut uri, .. } => uri,
226226
};
227+
// TODO: cleanup manual URI parsing
227228
let private_key_uri = match uri {
228229
Some(uri) if uri.contains("object=") => {
229230
let uri: String = uri

crates/core/tedge/src/cli/certificate/cli.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,10 @@ pub enum TEdgeCertCli {
5353
cloud: Option<CloudArg>,
5454
},
5555

56-
/// Create a new keypair
56+
/// Create a new keypair using a PKCS11 token.
57+
///
58+
/// Generates a keypair on the PKCS11 token, saves the private key on the token, and generates a
59+
/// CSR using the newly generated keypair.
5760
CreateKey {
5861
#[arg(long)]
5962
label: String,

crates/core/tedge/src/cli/certificate/create_csr.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ use crate::log::MaybeFancy;
44
use crate::override_public_key;
55
use crate::persist_new_private_key;
66
use crate::reuse_private_key;
7-
use anyhow::Context;
87
use camino::Utf8PathBuf;
98
use certificate::parse_root_certificate::CryptokiConfig;
109
use certificate::CsrTemplate;

crates/extensions/tedge-p11-server/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ camino.features = ["serde1"]
1616
camino.workspace = true
1717
clap.workspace = true
1818
cryptoki.workspace = true
19-
oid-registry = "0.8.1"
2019
percent-encoding.workspace = true
2120
postcard.workspace = true
2221
rand = "0.9.1"

0 commit comments

Comments
 (0)