1
0
mirror of https://github.com/actix/examples synced 2024-11-23 22:41:07 +01:00

regererate rustls certs

fixes #445
This commit is contained in:
Rob Ede 2021-10-06 22:42:44 +01:00
parent 8186a8cfea
commit 900a699fba
No known key found for this signature in database
GPG Key ID: 97C636207D3EF933
4 changed files with 1156 additions and 420 deletions

1471
Cargo.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -1,24 +1,25 @@
-----BEGIN CERTIFICATE----- -----BEGIN CERTIFICATE-----
MIIEDDCCAnSgAwIBAgIQLu2TV80hCgYgZe18ovEhmzANBgkqhkiG9w0BAQsFADBZ MIIEJzCCAo+gAwIBAgIQKu5MWHrdyO4HsnfIu8alTDANBgkqhkiG9w0BAQsFADBt
MR4wHAYDVQQKExVta2NlcnQgZGV2ZWxvcG1lbnQgQ0ExFzAVBgNVBAsMDmh1eXV1 MR4wHAYDVQQKExVta2NlcnQgZGV2ZWxvcG1lbnQgQ0ExITAfBgNVBAsMGHJvYkBz
bWlAcmlyaWthMR4wHAYDVQQDDBVta2NlcnQgaHV5dXVtaUByaXJpa2EwHhcNMTkw b21icmEueDUyLmRldiAoUm9iKTEoMCYGA1UEAwwfbWtjZXJ0IHJvYkBzb21icmEu
NjAxMDAwMDAwWhcNMzAwNTE5MDM0MjI2WjBCMScwJQYDVQQKEx5ta2NlcnQgZGV2 eDUyLmRldiAoUm9iKTAeFw0yMTEwMDYyMTMxMzNaFw0yNDAxMDYyMjMxMzNaMEwx
ZWxvcG1lbnQgY2VydGlmaWNhdGUxFzAVBgNVBAsMDmh1eXV1bWlAcmlyaWthMIIB JzAlBgNVBAoTHm1rY2VydCBkZXZlbG9wbWVudCBjZXJ0aWZpY2F0ZTEhMB8GA1UE
IjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA5fRUIbEv2DjBmK7+syGVvh3I CwwYcm9iQHNvbWJyYS54NTIuZGV2IChSb2IpMIIBIjANBgkqhkiG9w0BAQEFAAOC
FWDlVjU9N7ypxauQbXPHAzpATzghLn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k4SZTWmUGjo/
0tcEInxEd7FbssGfMqF9fQtnNw== 3I+uWHi2Foc2FU8LSAb4hLk=
-----END RSA PRIVATE KEY----- -----END PRIVATE KEY-----

View File

@ -10,8 +10,8 @@ use rustls::{NoClientAuth, ServerConfig};
async fn index(req: HttpRequest) -> HttpResponse { async fn index(req: HttpRequest) -> HttpResponse {
println!("{:?}", req); println!("{:?}", req);
HttpResponse::Ok() HttpResponse::Ok()
.content_type("text/plain") .content_type("text/html; charset=utf-8")
.body("Welcome!") .body("<!DOCTYPE html><html><body><p>Welcome!</p></body></html>")
} }
#[actix_web::main] #[actix_web::main]