Alicelucky

Aug15/16/18/21/22-1

Sep 26th, 2017
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. #!/usr/bin/env bash
  2. cp /etc/pki/tls/openssl.cnf custom_openssl.cnf
  3. nano custom_openssl.cnf
  4. openssl req -x509 -batch -nodes -days 3650 -newkey rsa:2048 -keyout /etc/logstash/logstash.key -out /etc/logstash/logstash.crt -config custom_openssl.cnf
  5. rm custom_openssl.cnf
Add Comment
Please, Sign In to add comment