From 6f833979549219bd5507de6063f358ef1df5e304 Mon Sep 17 00:00:00 2001 From: Freeman Liu Date: Tue, 31 Oct 2023 22:48:57 +0800 Subject: [PATCH] update certification --- examples/tls/README.md | 2 +- examples/tls/src/main/resources/ca.crt | 35 +++++++-------- examples/tls/src/main/resources/server.crt | 35 +++++++-------- examples/tls/src/main/resources/server.key | 52 +++++++++++----------- 4 files changed, 61 insertions(+), 63 deletions(-) diff --git a/examples/tls/README.md b/examples/tls/README.md index 1d26fd11..766025e0 100644 --- a/examples/tls/README.md +++ b/examples/tls/README.md @@ -10,7 +10,7 @@ openssl genpkey -algorithm RSA -out server.key openssl req -new -key server.key -out server.csr - openssl x509 -req -in server.csr -CA ca.crt -CAkey ca.key -out server.crt + openssl x509 -req -days 3650 -in server.csr -CA ca.crt -CAkey ca.key -out server.crt ``` 2. Run tests diff --git a/examples/tls/src/main/resources/ca.crt b/examples/tls/src/main/resources/ca.crt index 79d56f54..2215e58b 100644 --- a/examples/tls/src/main/resources/ca.crt +++ b/examples/tls/src/main/resources/ca.crt @@ -1,20 +1,19 @@ -----BEGIN CERTIFICATE----- -MIIDOTCCAiECFCq3XQnKaNcPpk6aK5ZevTj/wuTiMA0GCSqGSIb3DQEBCwUAMFkx -CzAJBgNVBAYTAkNOMRMwEQYDVQQIDApTb21lLVN0YXRlMSEwHwYDVQQKDBhJbnRl -cm5ldCBXaWRnaXRzIFB0eSBMdGQxEjAQBgNVBAMMCWxvY2FsaG9zdDAeFw0yMzA5 -MjkwNzEwMDRaFw0yMzEwMjkwNzEwMDRaMFkxCzAJBgNVBAYTAkNOMRMwEQYDVQQI -DApTb21lLVN0YXRlMSEwHwYDVQQKDBhJbnRlcm5ldCBXaWRnaXRzIFB0eSBMdGQx -EjAQBgNVBAMMCWxvY2FsaG9zdDCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoC -ggEBALIl80v24VGL5hfPjqe+AFeHRH9PaqIYygQlvlBkROfkg6UjBn4h/sr/bxNJ -NpdV1b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Baous6DL/rVIle8xtjisnUWfYOBFzinercMyrsV23Y9hOQU4ZS+6bBaQ6j/b +1IYhMf7NA2U/PajTvnFjRT1WyvGTDzboGLjTymIbDFtIm1DApN4XkWIltiDyWHVe +iLWJwJHIC2gGvKUB6HaaxXO7zYoWlVhkxnwpJ8ECFUZzztVAcyZrGMhXFg22dRWk +jloFqOXjvDPCjM/AOog8yirxaoxpOz7E+c4brbww1fMAmaqwRlzsuQ1dZSt+cNtJ +ewLP3qAJ68iiGSj5Cq6uD1GaPgLIox34IjbtyQIDAQABMA0GCSqGSIb3DQEBCwUA +A4IBAQCECPSlD+0Q42SS+Sbgjla1OB03T2GdJNbgQ4J8azlxrLWDo0lG6mrX5ETa +jR7sFNoFfSv7LVxAvo9kGYw+gco25y4NqlE4SaC2EmcTApnYn6UOL9SZx9i+ADRd +J8QQapk17TDWVmjcsRXdmU5PCwSxFdOlte0mg0Ve/ltbpZHj9yr8A+byQshzF/Ni +eUvIl19IsJdXB8t1dgS3pTamsWGh8lo3GhWBaVpGcHO0bDoNLvafh7+ZezUwX66o +o+rbQQkNZ3hdThOShQReQzbP68QQUwmYHZwsdPvr6VEJrMk1qd1Zq42xwVlSpUav +EKi5PqqlJ9E7Dtu/GVsYg6DoSx5Q -----END CERTIFICATE----- diff --git a/examples/tls/src/main/resources/server.crt b/examples/tls/src/main/resources/server.crt index 57b144c0..e820c5d3 100644 --- a/examples/tls/src/main/resources/server.crt +++ b/examples/tls/src/main/resources/server.crt @@ -1,20 +1,19 @@ -----BEGIN CERTIFICATE----- -MIIDOTCCAiECFGXI9CSDVWVjt698kfJAdtvT+RX9MA0GCSqGSIb3DQEBCwUAMFkx -CzAJBgNVBAYTAkNOMRMwEQYDVQQIDApTb21lLVN0YXRlMSEwHwYDVQQKDBhJbnRl -cm5ldCBXaWRnaXRzIFB0eSBMdGQxEjAQBgNVBAMMCWxvY2FsaG9zdDAeFw0yMzA5 -MjkwNzEwNTBaFw0yMzEwMjkwNzEwNTBaMFkxCz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UxWhcNMzMxMDI4MTQ0 +NzUxWjBZMQswCQYDVQQGEwJBVTETMBEGA1UECAwKU29tZS1TdGF0ZTEhMB8GA1UE +CgwYSW50ZXJuZXQgV2lkZ2l0cyBQdHkgTHRkMRIwEAYDVQQDDAlsb2NhbGhvc3Qw +ggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCul26c+MLNNr+66gjNmDmy +Iukuj0fq2ChoQgRtUE2w3zD/psFj+sZNpzQFGJReva4rV+sKkllF2U5Cl12nJBqH +VcxKmvtbUiL+17//z14pWRJyM3h3L1NOA7lzNibPLWTTwFcpucuyt+49+9DzSMa3 +2R8btrlF7xm6OroR0qrJjw7pZAk3q9fAdh3Sd5345z22NAK8pEsYRh8+9qBLq/YG +lbRVFf+DivmKm8t1I4OkW9vqx4GnpK6IMbyNfxrsLY+aS2ZcLEvtLl+KSI99L9kZ +XjHbHXHkAM4aKRQOQ40CE9m5tBW4y9yLKKgK8O0GTlOslfu4rl2Uxxu+kr6wGE9f +AgMBAAEwDQYJKoZIhvcNAQELBQADggEBADj0T30PTX0ZTUlO6+2a1E9Ud+mxb9S/ +yuqxfHvFrCvXDDj3v1fz6XDattXsmEmrJ2+UmL5dMPqo3Uq/3HVcnzTpk4Jy8Xz3 +2LfxEI/UqGTwvtrjTlyRvPf3c6vDjBi/xlS2GMFQW3zrOG8vzVeFXv+RoU5PsD8U +BJhog6FrjxBO8ymUHnK1SsPskeNfC/2xcunne06FBzPSObfbg0aY9tLxNPCeKyXx +7k8BJTy9tt+LFXhBrgiTkbyMUCefaVDahi0gs5aNWRziSU1Xl+EHQ2OFB/IG5GO+ +6eWvuvPjDgOBG5NZ5S1qR0JThE3nrCFSFvAkvEIhT307km8iqo7asMs= -----END CERTIFICATE----- diff --git a/examples/tls/src/main/resources/server.key b/examples/tls/src/main/resources/server.key index e8739a95..24391d3d 100644 --- a/examples/tls/src/main/resources/server.key +++ b/examples/tls/src/main/resources/server.key @@ -1,28 +1,28 @@ -----B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