aboutsummaryrefslogtreecommitdiff
path: root/thirdparty/cpr/test/data/root-ca.cnf
diff options
context:
space:
mode:
authorStefan Boberg <[email protected]>2025-10-24 19:32:01 +0200
committerGitHub Enterprise <[email protected]>2025-10-24 19:32:01 +0200
commit4cba4eb3f122c7a1a49b629b1c0656d7f817f001 (patch)
treee184821073167f6e81a75193efca91013d7b359b /thirdparty/cpr/test/data/root-ca.cnf
parentfixed progress bar when scanning changed local files (#608) (diff)
downloadzen-4cba4eb3f122c7a1a49b629b1c0656d7f817f001.tar.xz
zen-4cba4eb3f122c7a1a49b629b1c0656d7f817f001.zip
move cpr in-tree (#605)
* added cpr 1.10.5 in-tree to allow updates to vcpkg without breaking the build * added asio 1.29.0 in-tree to remove one more vcpkg dependency * bumped vcpkg to 2024.06.15 to address failure to build due to use of deprecated binaries in vcpkg (404 error: `https://mirror.msys2.org/mingw/mingw64/mingw-w64-x86_64-pkgconf-1~2.1.0-1-any.pkg.tar.zst` during build)
Diffstat (limited to 'thirdparty/cpr/test/data/root-ca.cnf')
-rw-r--r--thirdparty/cpr/test/data/root-ca.cnf69
1 files changed, 69 insertions, 0 deletions
diff --git a/thirdparty/cpr/test/data/root-ca.cnf b/thirdparty/cpr/test/data/root-ca.cnf
new file mode 100644
index 000000000..9a1fd65dc
--- /dev/null
+++ b/thirdparty/cpr/test/data/root-ca.cnf
@@ -0,0 +1,69 @@
+# Based on: https://www.feistyduck.com/library/openssl-cookbook/online/openssl-command-line/private-ca-creating-root.html
+[default]
+name = root-ca
+default_ca = ca_default
+name_opt = utf8,esc_ctrl,multiline,lname,align
+
+[ca_dn]
+countryName = "GB"
+organizationName = "Example"
+commonName = "Root CA"
+
+[ca_default]
+home = ./${ENV::CA_PATH}
+database = $home/db/index
+serial = $home/db/serial
+certificate = ./${ENV::CRT_PATH}/$name.crt
+private_key = ./${ENV::KEY_PATH}/$name.key
+RANDFILE = $home/private/random
+new_certs_dir = $home/certificates
+unique_subject = no
+copy_extensions = none
+default_days = 3650
+default_md = sha256
+policy = policy_cn_supplied
+
+[policy_cn_supplied]
+countryName = optional
+stateOrProvinceName = optional
+organizationName = optional
+organizationalUnitName = optional
+commonName = supplied
+emailAddress = optional
+
+[req]
+default_bits = 4096
+encrypt_key = yes
+default_md = sha256
+utf8 = yes
+string_mask = utf8only
+prompt = no
+distinguished_name = ca_dn
+req_extensions = ca_ext
+
+[ca_ext]
+basicConstraints = critical,CA:true
+keyUsage = critical,keyCertSign
+subjectKeyIdentifier = hash
+nameConstraints = @name_constraints
+
+
+[server_ext]
+authorityKeyIdentifier = keyid:always
+basicConstraints = critical,CA:false
+extendedKeyUsage = clientAuth,serverAuth
+keyUsage = critical,digitalSignature,keyEncipherment
+subjectKeyIdentifier = hash
+
+[client_ext]
+authorityKeyIdentifier = keyid:always
+basicConstraints = critical,CA:false
+extendedKeyUsage = clientAuth
+keyUsage = critical,digitalSignature
+subjectKeyIdentifier = hash
+
+[name_constraints]
+permitted;DNS.0=localhost
+permitted;IP.0=127.0.0.1/255.0.0.0
+permitted;IP.1=::1/ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff
+