Skip to content

Instantly share code, notes, and snippets.

@sarmbruster
Last active June 6, 2023 13:22
Show Gist options
  • Save sarmbruster/29f2cff9eeb6cacd73dea2523744b833 to your computer and use it in GitHub Desktop.
Save sarmbruster/29f2cff9eeb6cacd73dea2523744b833 to your computer and use it in GitHub Desktop.
neo4j with self signed certificates
#!/bin/sh
#!/bin/bash
# Generate a private key
openssl genpkey -algorithm RSA -out private.key
# Generate a certificate signing request (CSR)
openssl req -new -key private.key -subj "/C=DE/L=Munich/O=Company/CN=www.myurl.com" -out certificate.csr
# Generate a self-signed certificate using the CSR and private key
openssl x509 -req -days 365 -in certificate.csr -signkey private.key -out certificate.crt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment