pub struct AuthConfig {
pub key_management: Option<KeyManagmentMode>,
pub password: Option<String>,
pub method: Option<AuthMethod>,
pub identity: Option<String>,
pub anonymous_identity: Option<String>,
pub ca_certificate: Option<String>,
pub client_certificate: Option<String>,
pub client_key: Option<String>,
pub client_key_password: Option<String>,
pub phase2_auth: Option<String>,
}
Expand description
Netplan supports advanced authentication settings for ethernet and wifi interfaces, as well as individual wifi networks, by means of the auth block.
Fields§
§key_management: Option<KeyManagmentMode>
The supported key management modes are none (no key management); psk (WPA with pre-shared key, common for home wifi); eap (WPA with EAP, common for enterprise wifi); and 802.1x (used primarily for wired Ethernet connections).
password: Option<String>
The password string for EAP, or the pre-shared key for WPA-PSK.
method: Option<AuthMethod>
The EAP method to use. The supported EAP methods are tls (TLS), peap (Protected EAP), and ttls (Tunneled TLS).
identity: Option<String>
The identity to use for EAP.
anonymous_identity: Option<String>
The identity to pass over the unencrypted channel if the chosen EAP method supports passing a different tunnelled identity.
ca_certificate: Option<String>
Path to a file with one or more trusted certificate authority (CA) certificates.
client_certificate: Option<String>
Path to a file containing the certificate to be used by the client during authentication.
client_key: Option<String>
Path to a file containing the private key corresponding to client-certificate.
client_key_password: Option<String>
Password to use to decrypt the private key specified in client-key if it is encrypted.
phase2_auth: Option<String>
Phase 2 authentication mechanism.
Trait Implementations§
Source§impl Clone for AuthConfig
impl Clone for AuthConfig
Source§fn clone(&self) -> AuthConfig
fn clone(&self) -> AuthConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more