(domain: &str)
| 184 | |
| 185 | impl Keys { |
| 186 | async fn generate(domain: &str) -> Result<Self> { |
| 187 | let tmp_ca_key = KeyPair::generate_for(&PKCS_ECDSA_P256_SHA256)?; |
| 188 | let ca_key = KeyPair::generate_for(&PKCS_ECDSA_P256_SHA256)?; |
| 189 | let rpc_key = KeyPair::generate_for(&PKCS_ECDSA_P256_SHA256)?; |
| 190 | let k256_key = SigningKey::random(&mut rand::rngs::OsRng); |
| 191 | Self::from_keys(tmp_ca_key, ca_key, rpc_key, k256_key, domain).await |
| 192 | } |
| 193 | |
| 194 | async fn from_keys( |
| 195 | tmp_ca_key: KeyPair, |
no outgoing calls
no test coverage detected