- Generate a private key:
openssl genrsa -out domain.key 2048
- Create a certificate signing request:
openssl req -new -sha256 -key domain.key -subj "/C=SE/ST=VG/O=Company, /CN=domain.com" -reqexts SAN -config <(cat /etc/ssl/openssl.cnf <(printf "\n[SAN]\nsubjectAltName=DNS:domain.com\n")) -out domain.csr
- Generate the certificate with the CA in question:
openssl x509 -req -extfile <(printf "subjectAltName=DNS:domain.com") -in my-new-domain.com.csr -CA cacert.pem -CAkey cakey.pem -out my-new-domain.com.crt -CAcreateserial -days 500 -sha256
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
# This uses /var/lib/docker as an example. | |
zpool labelclear -f /dev/sdb1 # if device was a zpool earlier on | |
fdisk /dev/sdb | |
d | |
n | |
w | |
mkfs.ext4 /dev/sdb1 |
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
ffmpeg -i file.flv -vcodec libx264 -strict -2 out.mp4 |