Created
September 15, 2015 18:03
-
-
Save adampats/ebd85e59e2febe2d3f2c to your computer and use it in GitHub Desktop.
Sample cert request with SAN
This file contains hidden or 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
| # create private key | |
| openssl genrsa -out app.key 2048 | |
| # create config/ini file for request | |
| # generate csr | |
| openssl req -new -out app.csr -key app.key -config request.ini | |
| # issue from CA using CSR |
This file contains hidden or 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
| [req] | |
| distinguished_name = req_distinguished_name | |
| req_extensions = v3_req | |
| prompt = no | |
| [req_distinguished_name] | |
| C = US | |
| ST = WA | |
| L = Seattle | |
| O = Company | |
| OU = Department | |
| CN = app.domain.net | |
| emailAddress = [email protected] | |
| [v3_req] | |
| keyUsage = keyEncipherment, dataEncipherment | |
| extendedKeyUsage = serverAuth | |
| subjectAltName = @alt_names | |
| [alt_names] | |
| DNS.1 = app.domain.net | |
| DNS.2 = hostname.domain.net |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment