Refresh test certificates for tokio-rustls (#113)

Used the script in tokio-native-tls/scripts to generate new certs.
This commit is contained in:
Dirkjan Ochtman 2022-07-28 12:51:38 +02:00 committed by GitHub
parent ce11bf7274
commit c2d1fe6813
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 140 additions and 136 deletions

View File

@ -286,7 +286,7 @@ fn make_pair() -> (ServerConnection, ClientConnection) {
let (sconfig, cconfig) = utils::make_configs(); let (sconfig, cconfig) = utils::make_configs();
let server = ServerConnection::new(sconfig).unwrap(); let server = ServerConnection::new(sconfig).unwrap();
let domain = rustls::ServerName::try_from("localhost").unwrap(); let domain = rustls::ServerName::try_from("foobar.com").unwrap();
let client = ClientConnection::new(cconfig, domain).unwrap(); let client = ClientConnection::new(cconfig, domain).unwrap();
(server, client) (server, client)

View File

@ -1,24 +1,31 @@
-----BEGIN CERTIFICATE----- -----BEGIN CERTIFICATE-----
MIIEADCCAmigAwIBAgICAcgwDQYJKoZIhvcNAQELBQAwLDEqMCgGA1UEAwwhcG9u MIIFUDCCAzigAwIBAgIJAJe5BNyTuxCoMA0GCSqGSIb3DQEBCwUAMEUxCzAJBgNV
eXRvd24gUlNBIGxldmVsIDIgaW50ZXJtZWRpYXRlMB4XDTE2MTIxMDE3NDIzM1oX BAYTAkFVMRMwEQYDVQQIDApTb21lLVN0YXRlMSEwHwYDVQQKDBhJbnRlcm5ldCBX
DTIyMDYwMjE3NDIzM1owGTEXMBUGA1UEAwwOdGVzdHNlcnZlci5jb20wggEiMA0G aWRnaXRzIFB0eSBMdGQwHhcNMjIwNzI4MTAyMjU1WhcNMjMwNzI4MTAyMjU1WjBa
CSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQC1YDz66+7VD4DL1+/sVHMQ+BbDRgmD MQswCQYDVQQGEwJBVTETMBEGA1UECAwKU29tZS1TdGF0ZTEhMB8GA1UECgwYSW50
OQlX++mfW8D3QNQm/qDBEbu7T7qqdc9GKDar4WIzBN8SBkzM1EjMGwNn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/Uzr5e6Tm8sVu88= gzTBCXv01yR4p6GeI4vxDKiryQEHhq0ipcQWnhm6HTeGM8mgswTyV7iS0zhbcsZO
BZKo8onGDy5kMqi5tV5sZTtT5jpcd2aZDVhdX1VtfLjS8QwPkIFyDQyAnusRtfOa
PC1oiz+z9JgkUEqVx5m1HZTvDuJ7jw3erGqAo/fmitHk4LQYDFtGbKKUDV120N0l
AqGqvz6CW1ZsXvxf1lkgoYluUzBJJZN0poV65wQhBSG//ZmHBPMWE1cxs0oHWlMB
kBqvgR4PLdO0h6NbD0FcttdIwMa9SAHJXe5Ba0sg3OWs+dp494kYXr2GRmYeGtuW
UfEsK1iQAPhAv2Rq3BUkX2YPZyzh57WolDdB+R4k/aGgbGpcTabyZbdaU9+clOow
NU4iTyn2BOm1vX6PMmMBQOiV+O8SpwsIdonQ/84VCI2mjJeGl3kX5akLMwyz4rpn
MkK20x8h4oIYiTMT349sj/73v0I=
-----END CERTIFICATE----- -----END CERTIFICATE-----

View File

@ -1,89 +1,62 @@
-----BEGIN CERTIFICATE----- -----BEGIN CERTIFICATE-----
MIIGnzCCAoegAwIBAgIBezANBgkqhkiG9w0BAQsFADAaMRgwFgYDVQQDDA9wb255 MIIFUDCCAzigAwIBAgIJAJe5BNyTuxCoMA0GCSqGSIb3DQEBCwUAMEUxCzAJBgNV
dG93biBSU0EgQ0EwHhcNMTYxMjEwMTc0MjMzWhcNMjYxMjA4MTc0MjMzWjAsMSow BAYTAkFVMRMwEQYDVQQIDApTb21lLVN0YXRlMSEwHwYDVQQKDBhJbnRlcm5ldCBX
KAYDVQQDDCFwb255dG93biBSU0EgbGV2ZWwgMiBpbnRlcm1lZGlhdGUwggGiMA0G aWRnaXRzIFB0eSBMdGQwHhcNMjIwNzI4MTAyMjU1WhcNMjMwNzI4MTAyMjU1WjBa
CSqGSIb3DQEBAQUAA4IBjwAwggGKAoIBgQDnfb7vaJbaHEyVTflswWhmHqx5W0NO MQswCQYDVQQGEwJBVTETMBEGA1UECAwKU29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FSpaWgK3VNAcigyDajgoE4v
ZuiVDEiLhLowZvi1V8GOWzcka7R2BQBjhOLWByQGDcm8cOMS7w8oCSQCaYmJyHvE
tTHq7fX6/sXv0AJqM3ysSdU01IVBNahnr5WEkmQMaFF0DGvRfqkVdKcChwrKv7r2
DLxargy39i2aQGg=
-----END CERTIFICATE----- -----END CERTIFICATE-----

View File

@ -1,27 +1,51 @@
-----BEGIN RSA PRIVATE KEY----- -----BEGIN RSA PRIVATE KEY-----
MIIEogIBAAKCAQEAtWA8+uvu1Q+Ay9fv7FRzEPgWw0YJgzkJV/vpn1vA90DUJv6g MIIJKQIBAAKCAgEA1KWn07gxqHJyLMdxjfqggubG76UsWUN+I2dlyCV/P18sFb7p
wRG7u0+6qnXPRig2q+FiMwTfEgZMzNRIzBsDZ2T1f0389KlAEdS/+2c39RmhWb1l hY4u3AAlI+RDUr26Klb5K3DJEApdyzRrfhBxTDSlVEI17incvH6eQiy58z4k5jDV
4JLMlKX8L5qax9yMv3aZBE8LT7YaUzzZbot4WZ5v+ZJI0UVoPR5iA+DtOC3ekit9 9WMbPsYvZ0QEUZzZWWJhmmRFgSTS0rkV4S9JTv39fbwYeDOVrJSKSOWSoKT6aq1y
d79mYKz2W5Cr26paoVJ2Foy925SlRm6VyLLmcxFPT4foB7T3BIWaRbDOni3vtk1b 7DrRP1t0xBvXbTZVJXz78hUAvMz0QLiH4R7GI70ZM/bE4ldbME4tqN74Rsno2AX9
HCK8nDBDk16gAJjus2fbEFrX5ZbtwhJZvdOB+vowP/S3oGpe9qTJpGK/MFp4qgw7 QsymF6Bu9GDGXXT/Z0UZ5E9imHWx+lQvPAmQDI8XE55BOGo4LizUB6w4zV7mMrVX
oo17gj5VceRAxRcsQZltfFHgxEGild5DX3pWkwIDAQABAoIBAFDTazlSbGML/pRY 4gz0UFZNwlugLkWsC8yXhE2m/oQP5qkh+KvqyfWuPmjwolzpo26M6uPYy+Xywp76
TTWeyIw2UkaA7npIr45C13BJfitw+1nJPK/tDCD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/Xo3inDtrkw4bHTk4yFbfPnupBdgwf
8+MS9wKCAQBjUYKZrFlU7+tnH7MUt8QZxr3CTP+uMpwyRqVF6IJ61yFdRFZAwoUV
NufcHoj39JF69xDPY7+o96ASt4CJx0jGkXtjvDBUpEDrWlI0kz6btaChQ4d/WktQ
7iRomX6+9BMdrHR2km/JiDG7HtlbCCQeGNCV5FiIMxmUx6ITPnBj48WZSEj6cwax
NYkGAqPCaf4Tqj0uSKr3NrQjyYCQ4ovXt9ZGyMrmR1fNLJoPXMn++nIA2ZxUllGS
/2LHzyddQ9dfPdDzQMDfJVRVLl12seClF1qkZsVzhfgJBkbRmEj/8+uD7pm8/AgN
tX9r7xw9vEvxmpj8XwKBFhL3hEfgQLkJAoIBAQDsw6FU4JthWAV0GLWwMIXSZ4Mc
uNio8154wAJMrAS9384ZAmDTwJy5aTo8AFREzQXpusLQXWioLiOVamvda8jy5OFH
r+IDnMiagT8gfHnLD+pVgq2/77zO1ioX3iuDJRN4l7IRWlNdaBvmEjZk2T52hPN+
taD+aWnep6GnWFEYPt6obWfomm7TfIpMnuQ6cSxRiOyNyTGfej/8jJQZnLr1E3f4
sFjuGLWJObeEgb+hsVavo9o9PthNnpYF5rgrOE67FxKu7OBIS7KM8GfMFavBzAAB
tHatAVyLj9B3VWgdrYIPn3/FnV8AiBphu9tFf0lRwCya8wu3FQ03WDhn0t1E
-----END RSA PRIVATE KEY----- -----END RSA PRIVATE KEY-----

View File

@ -74,7 +74,7 @@ lazy_static! {
}); });
let addr = recv.recv().unwrap(); let addr = recv.recv().unwrap();
(addr, "testserver.com", CHAIN) (addr, "foobar.com", CHAIN)
}; };
} }
@ -172,7 +172,7 @@ async fn test_lazy_config_acceptor() -> io::Result<()> {
use std::convert::TryFrom; use std::convert::TryFrom;
let (cstream, sstream) = tokio::io::duplex(1200); let (cstream, sstream) = tokio::io::duplex(1200);
let domain = rustls::ServerName::try_from("localhost").unwrap(); let domain = rustls::ServerName::try_from("foobar.com").unwrap();
tokio::spawn(async move { tokio::spawn(async move {
let connector = crate::TlsConnector::from(cconfig); let connector = crate::TlsConnector::from(cconfig);
let mut client = connector.connect(domain, cstream).await.unwrap(); let mut client = connector.connect(domain, cstream).await.unwrap();
@ -186,7 +186,7 @@ async fn test_lazy_config_acceptor() -> io::Result<()> {
let start = acceptor.await.unwrap(); let start = acceptor.await.unwrap();
let ch = start.client_hello(); let ch = start.client_hello();
assert_eq!(ch.server_name(), Some("localhost")); assert_eq!(ch.server_name(), Some("foobar.com"));
assert_eq!( assert_eq!(
ch.alpn() ch.alpn()
.map(|protos| protos.collect::<Vec<_>>()) .map(|protos| protos.collect::<Vec<_>>())