mirror of https://git.meli.delivery/meli/meli
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
8 lines
329 B
Bash
8 lines
329 B
Bash
#!/bin/bash
|
|
set -eux
|
|
|
|
openssl req -x509 -out localhost.crt -keyout localhost.key \
|
|
-newkey rsa:2048 -nodes -sha256 \
|
|
-subj '/CN=localhost' -extensions EXT -config <( \
|
|
printf "[dn]\nCN=localhost\n[req]\ndistinguished_name = dn\n[EXT]\nsubjectAltName=DNS:localhost\nkeyUsage=digitalSignature\nextendedKeyUsage=serverAuth")
|