-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
39 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# OpenSSL configuration file for creating a CSR for a server certificate | ||
# Adapt at least the FQDN and ORGNAME lines, and then run | ||
# openssl req -new -config myserver.cnf -keyout myserver.key -out myserver.csr | ||
# on the command line. | ||
|
||
# the fully qualified server (or service) name | ||
FQDN = foo.example.org | ||
|
||
# the name of your organization | ||
# (see also https://www.switch.ch/pki/participants/) | ||
ORGNAME = Example University | ||
|
||
# subjectAltName entries: to add DNS aliases to the CSR, delete | ||
# the '#' character in the ALTNAMES line, and change the subsequent | ||
# 'DNS:' entries accordingly. Please note: all DNS names must | ||
# resolve to the same IP address as the FQDN. | ||
ALTNAMES = DNS:$FQDN # , DNS:bar.example.org , DNS:www.foo.example.org | ||
|
||
# --- no modifications required below --- | ||
[ req ] | ||
default_bits = 2048 | ||
default_md = sha256 | ||
prompt = no | ||
encrypt_key = no | ||
distinguished_name = dn | ||
req_extensions = req_ext | ||
|
||
[ dn ] | ||
C = CH | ||
O = $ORGNAME | ||
CN = $FQDN | ||
|
||
[ req_ext ] | ||
subjectAltName = $ALTNAMES |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters