format patches

This commit is contained in:
Cong Liu 2022-11-24 10:42:07 +08:00
parent 77cad48dd4
commit 1b94f0b897
1 changed files with 24 additions and 16 deletions

View File

@ -1,5 +1,7 @@
From: Giovanni Mascellani <gio@debian.org>
Date: Thu, 24 Nov 2022 10:42:07 +0800
Subject: Regenerate test certificates
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=915270
Tests fail because test certificates are now expired. This patch
@ -10,11 +12,17 @@ will).
Useful information about how to regenerate: https://datacenteroverlords.com/2012/03/01/creating-your-own-ssl-certificate-authority/
(but I doubt my granchildren will be able to still see that
page).
---
tests/https-cert/ca-cert.pem | 50 +++++++++++---------------
tests/https-cert/ca-key.pem | 77 +++++++++++++---------------------------
tests/https-cert/server-cert.pem | 51 ++++++++++++--------------
tests/https-cert/server-key.csr | 50 +++++++++++++-------------
4 files changed, 93 insertions(+), 135 deletions(-)
Index: libgovirt-0.3.4/tests/https-cert/ca-cert.pem
===================================================================
--- libgovirt-0.3.4.orig/tests/https-cert/ca-cert.pem
+++ libgovirt-0.3.4/tests/https-cert/ca-cert.pem
diff --git a/tests/https-cert/ca-cert.pem b/tests/https-cert/ca-cert.pem
index 1f37f35..8eed3e5 100644
--- a/tests/https-cert/ca-cert.pem
+++ b/tests/https-cert/ca-cert.pem
@@ -1,32 +1,22 @@
-----BEGIN CERTIFICATE-----
-MIIFfzCCA2egAwIBAgIJAJe68wcZuCytMA0GCSqGSIb3DQEBCwUAMFYxCzAJBgNV
@ -68,10 +76,10 @@ Index: libgovirt-0.3.4/tests/https-cert/ca-cert.pem
+oJAYt/OWWIG75Ta/RgpC45XhsEO7xcEx+Xnp1eEairnTQ7h8CJWsuaGhza6V8RwM
+QiZxvsJP7r49
-----END CERTIFICATE-----
Index: libgovirt-0.3.4/tests/https-cert/ca-key.pem
===================================================================
--- libgovirt-0.3.4.orig/tests/https-cert/ca-key.pem
+++ libgovirt-0.3.4/tests/https-cert/ca-key.pem
diff --git a/tests/https-cert/ca-key.pem b/tests/https-cert/ca-key.pem
index 799f010..b5f0711 100644
--- a/tests/https-cert/ca-key.pem
+++ b/tests/https-cert/ca-key.pem
@@ -1,54 +1,27 @@
-----BEGIN RSA PRIVATE KEY-----
-Proc-Type: 4,ENCRYPTED
@ -152,10 +160,10 @@ Index: libgovirt-0.3.4/tests/https-cert/ca-key.pem
+PNu3mEUUa5DSkgyt9aF74JMkpMUMgCdOqYN8468Hi70BAY+ra0n4Vrv5PtrQ8EQj
+YwJELzVsqK23zSQzfuCOZXhH6ctI7sZdbC5+sGl3oZzy85wLoaSBHA==
-----END RSA PRIVATE KEY-----
Index: libgovirt-0.3.4/tests/https-cert/server-cert.pem
===================================================================
--- libgovirt-0.3.4.orig/tests/https-cert/server-cert.pem
+++ libgovirt-0.3.4/tests/https-cert/server-cert.pem
diff --git a/tests/https-cert/server-cert.pem b/tests/https-cert/server-cert.pem
index 709369f..91cec12 100644
--- a/tests/https-cert/server-cert.pem
+++ b/tests/https-cert/server-cert.pem
@@ -1,30 +1,25 @@
-----BEGIN CERTIFICATE-----
-MIIFIDCCAwgCAQEwDQYJKoZIhvcNAQELBQAwVjELMAkGA1UEBhMCWFgxFTATBgNV
@ -210,10 +218,10 @@ Index: libgovirt-0.3.4/tests/https-cert/server-cert.pem
+Z9fdI9239pnWvr/ZLu5ZdvTQBrpqkICWTZ6sz8lQLjsbVgA/XPngBQFMUiTZjtwv
+bTpNtz8uQyf7gjSDdA+iU3B+b0XzNC89ERjrulwKnw==
-----END CERTIFICATE-----
Index: libgovirt-0.3.4/tests/https-cert/server-key.csr
===================================================================
--- libgovirt-0.3.4.orig/tests/https-cert/server-key.csr
+++ libgovirt-0.3.4/tests/https-cert/server-key.csr
diff --git a/tests/https-cert/server-key.csr b/tests/https-cert/server-key.csr
index 64830e9..c19bc47 100644
--- a/tests/https-cert/server-key.csr
+++ b/tests/https-cert/server-key.csr
@@ -1,27 +1,27 @@
-----BEGIN CERTIFICATE REQUEST-----
-MIIEmzCCAoMCAQAwVjELMAkGA1UEBhMCWFgxFTATBgNVBAcMDERlZmF1bHQgQ2l0