Skip to content

Commit 4ce401c

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

File tree

7 files changed

+5
-16
lines changed

7 files changed

+5
-16
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"

tests/RobotFramework/tests/pkcs11/private_key_storage.robot

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,6 @@ Can create a private key on the PKCS11 token and download new cert from c8y
136136
Create private key and download cert from c8y label=rsa-2048 type=rsa p11tool_keytype=RSA-2048
137137
Create private key and download cert from c8y label=rsa-3072 type=rsa bits=3072 p11tool_keytype=RSA-3072
138138
Create private key and download cert from c8y label=rsa-4096 type=rsa bits=4096 p11tool_keytype=RSA-4096
139-
# TODO: support EC keys
140139
# TODO: make EC curve type appear in p11tool
141140
Create private key and download cert from c8y label=ec-256 type=ec curve=256
142141
Create private key and download cert from c8y label=ec-384 type=ec curve=384

0 commit comments

Comments
 (0)