Searched refs:cert (Results 1 – 11 of 11) sorted by relevance
| /tonic/tonic/src/transport/ |
| H A D | tls.rs | 10 pub(crate) cert: Certificate, field 55 pub fn from_pem(cert: impl AsRef<[u8]>, key: impl AsRef<[u8]>) -> Self { in from_pem() 56 let cert = Certificate::from_pem(cert); in from_pem() localVariable 58 Self { cert, key } in from_pem()
|
| /tonic/tonic/src/transport/server/service/ |
| H A D | tls.rs | 32 Some(cert) => { in new() 34 roots.add_parsable_certificates(convert_certificate_to_pki_types(cert)?); in new() 45 let (cert, key) = convert_identity_to_pki_types(identity)?; in new() 46 let mut config = builder.with_single_cert(cert, key)?; in new()
|
| /tonic/tonic/src/transport/service/ |
| H A D | tls.rs | 49 let cert = convert_certificate_to_pki_types(&identity.cert)?; in convert_identity_to_pki_types() localVariable 52 Ok((cert, key)) in convert_identity_to_pki_types()
|
| /tonic/tonic/src/transport/server/ |
| H A D | tls.rs | 37 pub fn client_ca_root(self, cert: Certificate) -> Self { in client_ca_root() 39 client_ca_root: Some(cert), in client_ca_root()
|
| /tonic/interop/src/bin/ |
| H A D | server.rs | 30 let cert = std::fs::read_to_string("interop/data/server1.pem")?; in main() localVariable 32 let identity = Identity::from_pem(cert, key); in main()
|
| /tonic/examples/src/tls/ |
| H A D | server.rs | 40 let cert = std::fs::read_to_string(data_dir.join("tls/server.pem"))?; in main() localVariable 43 let identity = Identity::from_pem(cert, key); in main()
|
| /tonic/examples/src/tls_client_auth/ |
| H A D | server.rs | 31 let cert = std::fs::read_to_string(data_dir.join("tls/server.pem"))?; in main() localVariable 33 let server_identity = Identity::from_pem(cert, key); in main()
|
| /tonic/interop/data/ |
| H A D | README.md | 10 1. From the `cert-generator` directory, run:
|
| /tonic/examples/src/tls_rustls/ |
| H A D | server.rs | 71 for cert in certs { in main() 72 certificates.push(cert.clone()); in main()
|
| /tonic/tonic/src/transport/channel/service/ |
| H A D | tls.rs | 79 for cert in ca_certs { in new() 80 roots.add_parsable_certificates(convert_certificate_to_pki_types(&cert)?); in new()
|
| /tonic/ |
| H A D | CHANGELOG.md | 594 * **transport:** Add server side peer cert support ([#228](https://github.com/hyperium/tonic/issues…
|