| 1 |
# An OpenSSL format CSR config file for creating a server certificate. |
| 2 |
# |
| 3 |
# This certificate contains a CN and SANs for both IPv4 and IPv6. |
| 4 |
|
| 5 |
|
| 6 |
[ req ] |
| 7 |
distinguished_name = req_distinguished_name |
| 8 |
req_extensions = v3_req |
| 9 |
prompt = no |
| 10 |
|
| 11 |
[ req_distinguished_name ] |
| 12 |
# Note: According to RFC 2818 and 6125, the CN is ignored, when DNS names are |
| 13 |
# present in the SANs. But they are silent on whether the CN is checked when IP |
| 14 |
# addresses are present. |
| 15 |
CN = common-name.pg-ssltest.test |
| 16 |
OU = PostgreSQL test suite |
| 17 |
|
| 18 |
# For Subject Alternative Names |
| 19 |
[ v3_req ] |
| 20 |
subjectAltName = @alt_names |
| 21 |
|
| 22 |
[ alt_names ] |
| 23 |
IP.1 = 192.0.2.1 |
| 24 |
IP.2 = 2001:DB8::1 |