aboutsummaryrefslogtreecommitdiffstats
path: root/tests/src/test/resources/analysis/SSLTest/openssl.cnf
diff options
context:
space:
mode:
Diffstat (limited to 'tests/src/test/resources/analysis/SSLTest/openssl.cnf')
-rw-r--r--tests/src/test/resources/analysis/SSLTest/openssl.cnf38
1 files changed, 38 insertions, 0 deletions
diff --git a/tests/src/test/resources/analysis/SSLTest/openssl.cnf b/tests/src/test/resources/analysis/SSLTest/openssl.cnf
new file mode 100644
index 00000000000..4a5148fd4d7
--- /dev/null
+++ b/tests/src/test/resources/analysis/SSLTest/openssl.cnf
@@ -0,0 +1,38 @@
+[ req ]
+default_md = sha1
+distinguished_name = req_distinguished_name
+
+[ req_distinguished_name ]
+countryName = Country
+countryName_default = FR
+countryName_min = 2
+countryName_max = 2
+localityName = Locality
+localityName_default = Poitiers
+organizationName = Organization
+organizationName_default = SonarSource
+commonName = Common Name
+commonName_max = 64
+
+[ certauth ]
+subjectKeyIdentifier = hash
+authorityKeyIdentifier = keyid:always,issuer:always
+basicConstraints = CA:true
+crlDistributionPoints = @crl
+
+[ server ]
+basicConstraints = CA:FALSE
+keyUsage = digitalSignature, keyEncipherment, dataEncipherment
+extendedKeyUsage = serverAuth
+nsCertType = server
+crlDistributionPoints = @crl
+
+[ client ]
+basicConstraints = CA:FALSE
+keyUsage = digitalSignature, keyEncipherment, dataEncipherment
+extendedKeyUsage = clientAuth
+nsCertType = client
+crlDistributionPoints = @crl
+
+[ crl ]
+URI=http://testca.local/ca.crl \ No newline at end of file