MCPcopy Create free account
hub / github.com/Dstack-TEE/dstack / store_certs

Method store_certs

kms/src/onboard_service.rs:327–332  ·  view source on GitHub ↗
(&self, cfg: &KmsConfig)

Source from the content-addressed store, hash-verified

325 }
326
327 fn store_certs(&self, cfg: &KmsConfig) -> Result<()> {
328 safe_write(cfg.tmp_ca_cert(), self.tmp_ca_cert.pem())?;
329 safe_write(cfg.root_ca_cert(), self.ca_cert.pem())?;
330 safe_write(cfg.rpc_cert(), self.rpc_cert.pem())?;
331 Ok(())
332 }
333}
334
335pub(crate) async fn update_certs(cfg: &KmsConfig) -> Result<()> {

Callers 2

storeMethod · 0.80
update_certsFunction · 0.80

Calls 3

tmp_ca_certMethod · 0.80
root_ca_certMethod · 0.80
rpc_certMethod · 0.80

Tested by

no test coverage detected