Struct webauthn_rs_core::interface::AttestationCa
source · [−]pub struct AttestationCa {
pub ca: X509,
}Expand description
A structure representing an Attestation CA and other options associated to this CA.
Generally depending on the Attestation CA in use, this can help determine properties of the authenticator that is in use.
Fields
ca: X509The x509 root CA of the attestation chain that a security key will be attested to.
Implementations
sourceimpl AttestationCa
impl AttestationCa
sourcepub fn new_from_der(data: &[u8]) -> Result<Self, WebauthnError>
pub fn new_from_der(data: &[u8]) -> Result<Self, WebauthnError>
Create a customised attestation CA from a DER public key.
sourcepub fn apple_webauthn_root_ca() -> Self
pub fn apple_webauthn_root_ca() -> Self
The Apple TouchID and FaceID root CA.
sourcepub fn yubico_u2f_root_ca_serial_457200631() -> Self
pub fn yubico_u2f_root_ca_serial_457200631() -> Self
The yubico u2f root ca. Applies to all devices up to and including series 5.
The microsoft root CA for TPM attestation.
Not eligible for strict - many TPM’s use SHA1 in signatures, which means they are potentially weak.
In the future we may reject RS1 signatures, allowing this to be moved into the strict category.
sourcepub fn nitrokey_fido2_root_ca() -> Self
pub fn nitrokey_fido2_root_ca() -> Self
Nitrokey root CA for their FIDO2 device range.
Not eligible for strict - hardware is difficult to interact with, low quality, and easy to break or destroy.
sourcepub fn nitrokey_u2f_root_ca() -> Self
pub fn nitrokey_u2f_root_ca() -> Self
Nitrokey root CA for their U2F device range.
Not eligible for strict - hardware is difficult to interact with, low quality, and easy to break or destroy.
sourcepub fn android_root_ca_1() -> Self
pub fn android_root_ca_1() -> Self
Android ROOT CA 1
sourcepub fn android_root_ca_2() -> Self
pub fn android_root_ca_2() -> Self
Android ROOT CA 2
sourcepub fn android_root_ca_3() -> Self
pub fn android_root_ca_3() -> Self
Android ROOT CA 3
sourcepub fn android_software_ca() -> Self
pub fn android_software_ca() -> Self
Android SOFTWARE ONLY root CA
sourcepub fn google_safetynet_ca() -> Self
pub fn google_safetynet_ca() -> Self
Google SafetyNet CA (for android)
Trait Implementations
sourceimpl Clone for AttestationCa
impl Clone for AttestationCa
sourcefn clone(&self) -> AttestationCa
fn clone(&self) -> AttestationCa
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more