pub enum SigningKeyConfig {
File {
path: PathBuf,
},
Pkcs11 {
module: String,
token_label: Option<String>,
slot_id: Option<u64>,
pin: Option<String>,
pin_env: Option<String>,
key_label: Option<String>,
key_id: Option<String>,
},
Demo,
}Expand description
How to obtain the signing key for OCSP response production.
Variants§
File
Load from a PKCS#8 PEM or DER file on disk.
Pkcs11
Sign via a PKCS#11 hardware security module.
Supported HSMs: Thales Luna, Entrust nShield, Utimaco CryptoServer, FutureX Vectera Plus, SoftHSM2 (testing).
Fields
Demo
Ephemeral demo key for testing only. Produces a warning on every use.
Trait Implementations§
Source§impl Clone for SigningKeyConfig
impl Clone for SigningKeyConfig
Source§fn clone(&self) -> SigningKeyConfig
fn clone(&self) -> SigningKeyConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SigningKeyConfig
impl Debug for SigningKeyConfig
Source§impl<'de> Deserialize<'de> for SigningKeyConfig
impl<'de> Deserialize<'de> for SigningKeyConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for SigningKeyConfig
impl RefUnwindSafe for SigningKeyConfig
impl Send for SigningKeyConfig
impl Sync for SigningKeyConfig
impl Unpin for SigningKeyConfig
impl UnsafeUnpin for SigningKeyConfig
impl UnwindSafe for SigningKeyConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more