Last active
March 8, 2023 11:06
-
-
Save AlperRehaYAZGAN/8f167cbc33b0d8e804a20180d151f656 to your computer and use it in GitHub Desktop.
Generate wildcard ssl certificate using openssl for "*.rdb.mydomain.com"
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
openssl genrsa -out rdb.mydomain.com.key 2048 | |
openssl req -new -key rdb.mydomain.com.key -out rdb.mydomain.com.csr | |
openssl x509 -req -days 365 -in rdb.mydomain.com.csr -signkey rdb.mydomain.com.key -out rdb.mydomain.com.crt | |
cat rdb.mydomain.com.key rdb.mydomain.com.crt > rdb.mydomain.com.pem | |
# haproxy | |
# bind *:443 ssl crt /path/to/rdb.mydomain.com.pem | |
# docker run --name rdb1 -p 6378:6379 -d redis --requirepass rdb1 | |
# docker run --name rdb2 -p 6379:6379 -d redis --requirepass rdb2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment