curl/tests/stunnel.pem
Paul Howarth ef07452a5c
tests: avoid use of sha1 in certificates
The SHA-1 algorithm is deprecated (particularly for security-sensitive
applications) in a variety of OS environments. This already affects
RHEL-9 and derivatives, which are not willing to use certificates using
that algorithm. The fix is to use sha256 instead, which is already used
for most of the other certificates in the test suite.

Fixes #10135

This gets rid of issues related to sha1 signatures.

Manual steps after "make clean-certs" and "make build-certs":

- Copy tests/certs/stunnel-sv.pem to tests/stunnel.pem
  (make clean-certs does not remove the original tests/stunnel.pem)

- Copy tests/certs/Server-localhost-sv.pubkey-pinned into --pinnedpubkey
  options of tests/data/test2041 and tests/data/test2087

Closes #10153
2022-12-26 09:47:43 +01:00

166 lines
8.0 KiB
Plaintext

extensions = x509v3
[ x509v3 ]
subjectAltName = DNS:localhost
keyUsage = keyEncipherment,digitalSignature,keyAgreement
extendedKeyUsage = serverAuth
subjectKeyIdentifier = hash
authorityKeyIdentifier = keyid
basicConstraints = CA:false
authorityInfoAccess = @issuer_info
crlDistributionPoints = @crl_info
[ crl_ext ]
authorityKeyIdentifier = keyid:always
authorityInfoAccess = @issuer_info
[ issuer_info ]
caIssuers;URI.0 = http://test.curl.se/ca/EdelCurlRoot.cer
[ crl_info ]
URI.0 = http://test.curl.se/ca/EdelCurlRoot.crl
[ req ]
default_bits = 12048
distinguished_name = req_DN
default_md = sha256
string_mask = utf8only
[ req_DN ]
countryName = "Country Name is Northern Nowhere"
countryName_value = NN
organizationName = "Organization Name"
organizationName_value = Edel Curl Arctic Illudium Research Cloud
commonName = "Common Name"
commonName_value = localhost
[something]
# The key
# the certificate
# some dhparam
-----BEGIN PRIVATE KEY-----
MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQCrCrAD0Hb+Xs4V
3mHV45FvfNa7yiaOeL4mNdGmWfHVPFU+CSzsoNSvDjxaorWweFGVYoCAcchOn1lZ
k0ASsqnOss0Xi58n8+PPI3gG0gYjX5sg7EJ3Zq2kXoK0TZRy6hNkcvzLgy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7dfaXgRZjGCTPttWtoOmpwVAoGAd2k+
EXuLDl15UBpd18S6wxGlw2nfVN9oxPBNhUyjTNusP38oe6EbJ7mIJ4oBEbQjoPrV
EjL0vkelxK4YdIeFSwWlqvLEVYS/wdNgg/auwhxpoW8JSHctNz7Z7v7g0/Hm2FkE
uZyiKCLptdHGWCGruNUOt27/U5F10e6YY6ayJL8CgYEAoE/ddHIlrKFzcZ0cu47R
ky4D4x32ceC2au4eGPLMDItPjceXe8I6zgB5P8/U5U3PRw5oWabpAf5lAcRwa12c
23xgy9O5QNlyps/rAdnVjwxqGwEd5E2LrZ2+JDflPRGunx2VO5v9CxXvsxu9F3Rj
tREtebHe2H7u5jNsIQArnRI=
-----END PRIVATE KEY-----
Certificate:
Data:
Version: 3 (0x2)
Serial Number: 16717980999635 (0xf3475519fd3)
Signature Algorithm: sha256WithRSAEncryption
Issuer:
countryName = NN
organizationName = Edel Curl Arctic Illudium Research Cloud
commonName = Northern Nowhere Trust Anchor
Validity
Not Before: Dec 23 12:21:39 2022 GMT
Not After : Mar 11 12:21:39 2031 GMT
Subject:
countryName = NN
organizationName = Edel Curl Arctic Illudium Research Cloud
commonName = localhost
Subject Public Key Info:
Public Key Algorithm: rsaEncryption
Public-Key: (2048 bit)
Modulus:
00:ab:0a:b0:03:d0:76:fe:5e:ce:15:de:61:d5:e3:
91:6f:7c:d6:bb:ca:26:8e:78:be:26:35:d1:a6:59:
f1:d5:3c:55:3e:09:2c:ec:a0:d4:af:0e:3c:5a:a2:
b5:b0:78:51:95:62:80:80:71:c8:4e:9f:59:59:93:
40:12:b2:a9:ce:b2:cd:17:8b:9f:27:f3:e3:cf:23:
78:06:d2:06:23:5f:9b:20:ec:42:77:66:ad:a4:5e:
82:b4:4d:94:72:ea:13:64:72:fc:cb:83:2c:d7:a1:
8b:f5:2e:4c:d3:c1:88:b2:c8:98:19:5f:ef:98:fc:
62:80:b3:67:cc:1f:23:fc:5f:38:cd:82:6e:2d:96:
d9:35:93:fe:29:a2:69:65:c0:df:45:ab:3f:ac:17:
18:00:80:4a:b7:c9:ba:b8:5f:29:bb:c4:ac:16:97:
cc:57:34:10:c9:36:65:6c:3e:d8:89:45:c8:a5:42:
84:7c:5e:cd:1a:e8:f1:3e:55:b3:21:0f:d0:36:13:
f2:c4:2f:b9:73:41:fa:87:aa:dc:44:d6:64:96:e4:
5a:50:f9:4a:9f:e0:a2:e7:69:f4:ad:5a:cf:3a:20:
e5:a7:09:e2:cf:e8:19:a1:00:ae:a8:bb:22:02:34:
5c:b3:cf:b5:24:4c:76:bf:ad:e9:f1:b8:d3:86:ba:
7d:93
Exponent: 65537 (0x10001)
X509v3 extensions:
X509v3 Subject Alternative Name:
DNS:localhost
X509v3 Key Usage:
Digital Signature, Key Encipherment, Key Agreement
X509v3 Extended Key Usage:
TLS Web Server Authentication
X509v3 Subject Key Identifier:
9C:97:B0:3D:B3:50:B1:F6:D4:71:E2:EB:CB:80:EA:93:7C:98:CC:72
X509v3 Authority Key Identifier:
87:CB:B1:33:2E:C1:67:7E:71:E3:E5:2B:4C:4D:A4:B3:6E:D2:5B:A9
X509v3 Basic Constraints:
CA:FALSE
Authority Information Access:
CA Issuers - URI:http://test.curl.se/ca/EdelCurlRoot.cer
X509v3 CRL Distribution Points:
Full Name:
URI:http://test.curl.se/ca/EdelCurlRoot.crl
Signature Algorithm: sha256WithRSAEncryption
Signature Value:
0b:8a:ed:6a:87:fa:71:15:88:25:58:85:1b:4a:09:bf:43:00:
35:93:78:0d:72:14:30:51:e2:93:83:a1:da:1b:2f:a9:31:ae:
b7:c7:4c:72:c2:5e:32:24:f1:96:93:70:d5:3f:b5:85:80:13:
75:32:cf:0e:f8:5d:c4:a2:29:84:43:2c:75:81:26:12:6a:a0:
cb:7b:57:c1:92:78:85:08:fa:64:50:c2:7b:83:02:4d:79:13:
bc:61:64:4d:b8:6b:d5:f1:84:6b:12:5c:69:90:ad:40:47:c0:
ed:dd:ea:8a:66:7e:87:85:19:aa:89:d3:3c:08:72:08:a1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