mirror of
https://github.com/empayre/fleet.git
synced 2024-11-07 01:15:22 +00:00
11 lines
282 B
Bash
11 lines
282 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
openssl req -x509 -newkey rsa:4096 -sha256 -days 3650 -nodes \
|
||
|
-keyout fleet.key -out fleet.crt -extensions san -config \
|
||
|
<(echo "[req]";
|
||
|
echo distinguished_name=req;
|
||
|
echo "[san]";
|
||
|
echo subjectAltName=DNS:fleet-a,DNS:fleet-b
|
||
|
) \
|
||
|
-subj "/CN=fleet"
|