#![allow(unused_variables)] #![allow(unused_must_use)] pub const CA_FILE: &str = "/Users/q/skill/rf/rustls_load/dev/ca.cert"; pub const CLIENT_CERT_FILE: &str = "/Users/q/skill/rf/rustls_load/dev/client.cert"; pub const CLIENT_KEY_FILE: &str = "/Users/q/skill/rf/rustls_load/dev/client.key"; pub const SERVER_CERT_FILE: &str = "/Users/q/skill/rf/rustls_load/dev/server.fullchain"; pub const SERVER_KEY_FILE: &str = "/Users/q/skill/rf/rustls_load/dev/server.rsa"; pub fn server_key() -> String {String::from( "-----BEGIN RSA PRIVATE KEY----- MIIEowIBAAKCAQEA0eEF664wSzaZx0NBLxwj8SSCx8g7ggStjJwLeDKnHAAhWLp1 gb1SfdzK64KWCaEKD3iZ8xudwlhhCpXNZU4q6jFbCKv6+IuG8dyVR8W6CK3trlS+ GsS61nJQYZ//Xl2Y531VK1PayqtmGnkMyPX0oxA4kNcWoqZu9W74bIwCidbborZg KeMz2E2AY4hvbsk6D0E5ka07WuXKmE8+J8Uiyj3m4tegZao0Q/XwJwPBdG885kwa cjqL424FCbQbdpVX4vw4cIgCRCc7eikAiX/NrqyM0nEOVRMzPlM75dkYEAlJKH/a 6ibCrQV/vq1TMAPXRpdkZnUDJAv9DcJF0LGs8QIDAQABAoIBAQCP9OCyv0+wx0rD OoZDYfHlPT3W+qiWjc7cW0wirduhgRVeXsaqrskeO4uT7oYrJKJZ6kbuUUrsOuKU +BtiGTOmXyQp1ozWXh25V6utBxqLSYF1yfp7MeVVoiMwUyY9+8UdQwJgLawsx1PJ ZK44STv7fOzPrDiCZ9ZD0lHjYkV7dP3/UfM79mP7SlOgpNOKpGe52p1juPdeI6fh kIGWH/TFjTqixiIkYntDeQRctxJRWRC5hPcDJSd64Y+XwblGSb2XD3cgiBLCQI4E gSlSHEOwX4B28cydxyza85fr7xs3ziMQU8QcDHwhICRQUVgX8Eh3Dny812GzQZMA OPg4qLYBAoGBAPGpjgLCuv6FbWL/uOOToCqWkwj+U4vZdu2f7sO0SS6lvkHzH76N Y6Qvqq5ZGq3KwnyADInTmZy23YxQqJfR3bW7O+pk7/Gl8d0wMd2DEHyYQNZyRNXW MN2GQ7ClmAE7d1lsy+8v9cBcehOu922cX8xv8HyoKkvwVEOz7H8Eb0MZAoGBAN5U u6UUjE2knoPWNWTcKbr30wGc7V9fBKy9AqcnKbOwlVRjBokr2fNR6XD4t48U5zFf bXDF1PLRk1+Q/ZEssiToNlCYvhaqCP3bE+W6i83ZZevqzEwWtol2c8JKMRpA50Di QMQjEQZtuVxi3s6beZQRbhIYS1ydQsg9HB5DZIuZAoGADe5aU2pqYTXL4oMfY28l Mo9PlpsisdMtefFYUEvaVCgV2bNsRw3biqF802Qrl40yvP6cum1KU7BvASG9NlNQ 1qMehxqegm2wjbGzjjN6BdS5GCOqODGKy5pr2IkTRC7raGpPL1CyeA5csznI5ba4 Bw8E7Aq9tXb7RJPgtEnLKDECgYB4AuUHRwA1KRcnswk/WFhuRDfyNvMq9+9eDujP saQhCsCQvKNaiAEuBpksEhWDdpUVYZ2BskgwilAy1eEJ7EZ9BZvMBacWNNKFtSwY ZYnxo9gQcL22lMwTh40U41d+BGrP61FqjkMyZSgZZoU+oU4PTxlLSzHi3ECgNdxn uZkcgQKBgDmNffCsJPBwQItVVauoeLYplWkDlWIdnfnrs0UqhJTZNShNlf9/mGqi i++Hv/GSlrZ1Yo8gg+61UoSv9chClvmYmT+NO/lvIHgpg+mVYm9fT0dkVJAIRTg7 ErL2fS4lYH3AmBH9a1DKNJ6B3Zoh5Mnt1o37l/zz72tTRyCQtObV -----END RSA PRIVATE KEY-----", ) } pub fn server_cert() -> String {String::from( "-----BEGIN CERTIFICATE----- MIIENDCCAhygAwIBAgICAcgwDQYJKoZIhvcNAQELBQAwADAeFw0yMzAxMTgxNTMy NDBaFw0yODA3MTAxNTMyNDBaMAAwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEK AoIBAQDR4QXrrjBLNpnHQ0EvHCPxJILHyDuCBK2MnAt4MqccACFYunW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vjBBrVN569sn2gbItsTPQKBgHS6 NYceGycWU3V2uSkq2w6WKGvJ/+FublPas4AY9IzNAeJJAJEvq8j68JORUP5GudK0 e5HwnLwvdFmxipR7kUNfEXTQkYLTqIlDoIeKmJUZQfhBSbIQFaL0UG38N217Og6l rwl03/JF0J8F7EVkdyaO5YfL4CP0sHffdatqSVSlAoGBAIRIsK3EhJHLyXtDb0n/ AX+lwYC28eVYr7OEN7Th2l7agWM0jglTTTpAuVEfipcYD5P++heAWKjq3vYrOBVc 0KAdVeDlivp9WcQuGGQYoawY5Tb/Fyu1aP8wISoQ/IgbntZa5KM00iJp1t77ZvUA 6Elb2YpntPwKss7cCJ86tljw -----END PRIVATE KEY-----" .to_string() } pub fn client_cert() -> String {"-----BEGIN CERTIFICATE----- MIIEDzCCAfegAwIBAgICAxUwDQYJKoZIhvcNAQELBQAwADAeFw0yMzAxMTgxNTMy NDBaFw0yODA3MTAxNTMyNDBaMAAwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEK AoIBAQC/eP5Rp+q/KrubqDrTY25u1df7DAm3UnQ0zTsASFnZ2ddgCWm+f7UN2B/1 +PDx3++sbZi/ZpapE+GuDyeh3pMBZFFeG1IKuI4pgUcpT93FtvX6Bn4fZEWxgQpF SCnzb1xOKXwaYQ+whc++7HtFDhGwYeceWQWwPlty6TpCCMqD4134iDx3Y1C4SRT+ /79h8TdlYkM6IarbtgOj0u9ccil6gqYErRTD5UFw31fE+6pQ/hHqs3BMEyb23D/V F0N6+UehU1VFICg4S05atOoNQ/vcoz4Imfg/rz3zgCMdUTqk+8xADv7LkUf85EO8 7kXBPeD7JhpSOUaDCvu7TusHRJu5AgMBAAGjgZIwgY8wDAYDVR0TAQH/BAIwADAL BgNVHQ8EBAMCBsAwFgYDVR0lAQH/BAwwCgYIKwYBBQUHAwIwHQYDVR0OBBYEFBd/ 56gTqtOrSLz39IndaLgxKKQYMDsGA1UdIwQ0MDKAFP8pW0t0HgZivlMj24VBBZ0R BsoloQS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