pub struct Ca {
pub cert_pem: String,
/* private fields */
}Expand description
The control plane’s CA, loaded or made on first use.
Fields§
§cert_pem: StringImplementations§
Source§impl Ca
impl Ca
Sourcepub fn open(dir: &Path) -> Result<Ca>
pub fn open(dir: &Path) -> Result<Ca>
The CA in dir (made with key 0600 in a 0700 directory if missing),
and the control plane’s client leaf beside it.
Sourcepub fn issue_server(&self, name: &str, address: &str) -> Result<Leaf>
pub fn issue_server(&self, name: &str, address: &str) -> Result<Leaf>
An agent’s server certificate for address (an IP or a DNS name).
Sourcepub fn issue_client(&self) -> Result<Leaf>
pub fn issue_client(&self) -> Result<Leaf>
A client certificate (the control plane’s).
Sourcepub fn client_config(&self) -> Result<Arc<ClientConfig>>
pub fn client_config(&self) -> Result<Arc<ClientConfig>>
What the control plane dials agents with: this CA as the only root, and its client certificate.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Ca
impl !UnwindSafe for Ca
impl Freeze for Ca
impl Send for Ca
impl Sync for Ca
impl Unpin for Ca
impl UnsafeUnpin for Ca
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