n8n/packages/@n8n/syslog-client/test/fixtures
James Gee 279d6fd10f
feat(core): Add TLS support to Syslog client (#23304)
Signed-off-by: James Gee <1285296+geemanjs@users.noreply.github.com>
2026-01-06 21:15:02 +01:00
..
certificate.pem feat(core): Add TLS support to Syslog client (#23304) 2026-01-06 21:15:02 +01:00
key.pem feat(core): Add TLS support to Syslog client (#23304) 2026-01-06 21:15:02 +01:00
README.md feat(core): Add TLS support to Syslog client (#23304) 2026-01-06 21:15:02 +01:00
regenerate.sh feat(core): Add TLS support to Syslog client (#23304) 2026-01-06 21:15:02 +01:00
wrong.pem feat(core): Add TLS support to Syslog client (#23304) 2026-01-06 21:15:02 +01:00

Test Fixtures

This directory contains test certificates for TLS testing.

Required Files

These files can be regenerated using the following commands:

  • key.pem - Private key for test TLS server
  • certificate.pem - Valid certificate for test TLS server
  • wrong.pem - Invalid certificate for testing certificate validation

Generate Test Certificates

You can generate self-signed test certificates using OpenSSL:

# Generate private key
openssl genrsa -out key.pem 2048

# Generate valid certificate
openssl req -new -x509 -key key.pem -out certificate.pem -days 10000 \
  -subj "/C=US/ST=Test/L=Test/O=Test/CN=localhost"

# Generate wrong certificate (different key)
openssl genrsa -out wrong-key.pem 2048
openssl req -new -x509 -key wrong-key.pem -out wrong.pem -days 10000 \
  -subj "/C=US/ST=Wrong/L=Wrong/O=Wrong/CN=wrong"
rm wrong-key.pem

These certificates are only for testing and should never be used in production.