(&self)
| 13 | |
| 14 | impl Identity { |
| 15 | fn to_key(&self) -> Result<KeyPair> { |
| 16 | let keystr = String::from_utf8_lossy(&self.key); |
| 17 | let key = KeyPair::from_pem(&keystr)?; |
| 18 | Ok(key) |
| 19 | } |
| 20 | |
| 21 | pub fn to_tonic_identity(&self) -> tonic::transport::Identity { |
| 22 | tonic::transport::Identity::from_pem(&self.certificate, &self.key) |
no outgoing calls
no test coverage detected