Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env bash
- cp /etc/pki/tls/openssl.cnf custom_openssl.cnf
- nano custom_openssl.cnf
- openssl req -x509 -batch -nodes -days 3650 -newkey rsa:2048 -keyout /etc/logstash/logstash.key -out /etc/logstash/logstash.crt -config custom_openssl.cnf
- rm custom_openssl.cnf
Add Comment
Please, Sign In to add comment