test: add make-certs script to generate SSL certs
This will create the a certificate authority (CA) and then create a cert for composer and another one for the worker. The worker one can also be used by the koji plugin. The configuration file is needed to get subjectAltName working.
This commit is contained in:
parent
db82105eb0
commit
481243e628
2 changed files with 71 additions and 0 deletions
17
test/data/composer.ssl.conf
Normal file
17
test/data/composer.ssl.conf
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
[req]
|
||||
distinguished_name = req_distinguished_name
|
||||
req_extensions = v3_req
|
||||
prompt = no
|
||||
|
||||
[req_distinguished_name]
|
||||
CN = localhost
|
||||
|
||||
[v3_req]
|
||||
keyUsage = critical,keyEncipherment, dataEncipherment, digitalSignature
|
||||
extendedKeyUsage = critical,serverAuth,clientAuth,emailProtection
|
||||
basicConstraints = critical,CA:FALSE
|
||||
subjectAltName = @alt_names
|
||||
|
||||
[alt_names]
|
||||
DNS.1 = localhost
|
||||
DNS.2 = composer
|
||||
Loading…
Add table
Add a link
Reference in a new issue