How can one use the certificate files generated by LetsEncrypt together with a Neo4j instance? The files generated by LetsEncrypt are:
- cert.pem
- chain.pem
- fullchain.pem
- privkey.pem
I've tried conversion via OpenSSL with no luck so far, using conversion from PEM to DER. Neo4j complains about not finding the certs upon start. The question is how to convert the LetsEncrypt certs into something that Neo4j can use.
Setup details:
- The certs are placed in
/var/lib/neo4j/certificates/
with namesneo4j.{cert,key}
, permissions600
, owned byneo4j:nogroup
. All of this seems to be according to the docs. - In the config I have this line to specify the certificate path:
dbms.directories.certificates=/var/lib/neo4j/certificates
- In the config I also have remote access over HTTPS enabled:
dbms.connector.https.address=0.0.0.0:7473
When restarting Neo4j I get the following error message:
WARN Illegal character 0x16 in state=START for buffer HeapByteBuffer@5a260174[p=1,l=193,c=8192,r=192]={\x16<<< SEVERAL_LINES_OF_HEX_JIBBERISH_HERE }
WARN badMessage: 400 Illegal character 0x16 for HttpChannelOverHttp@5d682358{r=0,c=false,a=IDLE,uri=-}