Skip to content

Commit 437619a

Browse files
authored
test(supervisor): generate the SPIRE fixture gateway key through openshell-crypto
Main routes first-party key generation through the openshell-crypto facade. Generate the SPIRE delegation fixture's Ed25519 gateway key with it instead of calling rcgen's backend directly. Signed-off-by: Drew Newberry <anewberry@nvidia.com>
1 parent 87ba375 commit 437619a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • crates/openshell-supervisor-network/src/spiffe_delegation

‎crates/openshell-supervisor-network/src/spiffe_delegation/spire_tests.rs‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,10 @@ struct Keys {
7676
}
7777

7878
fn gateway_keys(gateway_id: &str) -> Keys {
79-
let key = rcgen::KeyPair::generate_for(&rcgen::PKCS_ED25519).unwrap();
79+
let key = openshell_crypto::pki::generate_jwt_keypair().unwrap();
8080
Keys {
8181
issuer: SessionJwtIssuer::from_ed25519_pem(
82-
key.serialize_pem().as_bytes(),
82+
key.serialize_pem().unwrap().as_bytes(),
8383
KEY_ID,
8484
gateway_id,
8585
Some(Duration::from_hours(1)),

0 commit comments

Comments
 (0)