Skip to content

Instantly share code, notes, and snippets.

View bradtumy's full-sized avatar

Brad Tumy bradtumy

View GitHub Profile
@bradtumy
bradtumy / signingcerts.md
Last active January 10, 2023 15:08
Creating signed certs with an OpenSSL certificate authority

Creating signed certs with an OpenSSL certificate authority

Create the Certificate Authority (If you haven’t already…)

  • Create a working directory under /opt/rootCA (you can put this anywhere it really doesn’t matter but you should secure this). Also create the following subdirectories: private, certs, newcerts.

  • Change the permissions on the new rootCA folder so that it’s read-only for everyone else but your user

    chmod -R 700 /opt/rootCA
@bradtumy
bradtumy / neo4j_docker.sh
Last active September 5, 2020 21:12
docker run neo4j
## first start
docker run \
--name testneo4j \
-p7474:7474 -p7687:7687 \
-d \
-v $HOME/neo4j/data:/data \
-v $HOME/neo4j/logs:/logs \
-v $HOME/neo4j/import:/var/lib/neo4j/import \
-v $HOME/neo4j/plugins:/plugins \
--env NEO4J_AUTH=neo4j/test \
@bradtumy
bradtumy / rebuildAllIndexes.sh
Last active August 30, 2020 17:55
Directory Services: Rebuild All Indexes
./rebuild-index \
--port 4444 \
--hostname am.example.com \
--bindDN "cn=Directory Manager" \
--bindPassword xxxxx \
--baseDN "dc=example,dc=com" \
--rebuildAll