Enum pliantdb_server::cli::certificate::Command[][src]

pub enum Command {
    InstallSelfSigned {
        server_name: String,
        overwrite: bool,
    },
    Install {
        private_key: PathBuf,
        certificate: PathBuf,
    },
}

Command to manage the server’s certificates.

Variants

InstallSelfSigned

Installs a self-signed certificate into the server. The server can only have one global self-signed certificate. If overwrite is true, any existing certificate will be overwritten. If overwrite is false and a certificate already exists, Error::Configuration is returned.

Show fields

Fields of InstallSelfSigned

server_name: String

The name of the server. If this server has a DNS name, you should use the hostname here. This value is required to be passed in when connecting for validation.

overwrite: bool

If an existing certificate exists, an error will be returned unless overwrite is true.

Install

Installs a X.509 certificate and associated private key in binary DER format.

This command reads the files private_key and certificate and executes Server::install_certificate().

Show fields

Fields of Install

private_key: PathBuf

A private key used to generate certificate in binary DER format.

certificate: PathBuf

The X.509 certificate in binary DER format.

Implementations

impl Command[src]

pub async fn execute(&self, server: Server) -> Result<()>[src]

Executes the command.

Trait Implementations

impl Debug for Command[src]

impl StructOpt for Command[src]

impl StructOptInternal for Command[src]

Auto Trait Implementations

impl RefUnwindSafe for Command

impl Send for Command

impl Sync for Command

impl Unpin for Command

impl UnwindSafe for Command

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Conv for T

impl<T> Conv for T

impl<T> FmtForward for T

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pipe for T where
    T: ?Sized

impl<T> Pipe for T

impl<T> PipeAsRef for T

impl<T> PipeBorrow for T

impl<T> PipeDeref for T

impl<T> PipeRef for T

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> Tap for T

impl<T> Tap for T

impl<T, U> TapAsRef<U> for T where
    U: ?Sized

impl<T, U> TapBorrow<U> for T where
    U: ?Sized

impl<T> TapDeref for T

impl<T> TryConv for T

impl<T> TryConv for T

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,