Add creating an introducer from a files
- Introducers can now be created by specifying a file. The certificate gets imported and declared as an introducer for the passed domains. - Add some checks, so that the imported certificate can actually be used as an introducer (certificate is alive, not revoked, has certification capabilities)
This commit is contained in:
@@ -16,6 +16,10 @@ pub enum CommandError {
|
||||
CertNotFound(Fingerprint),
|
||||
#[error("Certificate not usable: {0}")]
|
||||
CertNotUsable(Fingerprint),
|
||||
#[error("Certificate {0} is not alive (is expired or created in the future)")]
|
||||
CertNotAlive(Fingerprint),
|
||||
#[error("Certificate is revoked: {0}")]
|
||||
CertRevoked(Fingerprint),
|
||||
}
|
||||
|
||||
pub async fn dispatch(cli: CliArgs, config: HuskConfigContainer) -> Result<()> {
|
||||
|
||||
Reference in New Issue
Block a user