logstash/qa/integration/fixtures/certificates/generate_certificate.sh
Pier-Hugues Pellerin 3b5ac6008b Adding integration testing for filebeat and make the test a bit more flexible
The test includes theses scenario

- No TLS
- TLS Server Auth
- TLS Mutual Auth

Theses theses test relies on a certicate include in the fixtures to correctly run,
there is also a script to generate them.

Make the ServiceLocator class is now more flexible and use the pattern matching
to create the registry on the fly

Fixes #5887

Fixes #5917
2016-09-22 13:43:48 -04:00

2 lines
148 B
Bash
Executable file

#!/bin/sh
openssl req -subj '/CN=localhost/' -x509 -days $((100 * 365)) -batch -nodes -newkey rsa:2048 -keyout certificate.key -out certificate.crt