Skip to content

Instantly share code, notes, and snippets.

View anter74's full-sized avatar

Andrea Terren anter74

  • Juniper Networks
  • Milan
View GitHub Profile
@anter74
anter74 / run_oooq_with_ipa.sh
Created January 28, 2020 18:59 — forked from HarryRybacki-zz/run_oooq_with_ipa.sh
Deploy Over/Undercloud with FreeIPA using TripleO-Quickstart (OOOQ)
#!/bin/bash
set -ex
# Notes:
# - Ensure that you hand the virthsot from which you wish to deploy against
# as an argument during the script call.
# - This deployment will provision an additinoal node and configure it as
# a FreeIPA server prior to installing the undercloud.
VIRTHOST=$1
@anter74
anter74 / audit.rules
Created June 24, 2019 06:26 — forked from Neo23x0/audit.rules
Linux Auditd Best Practice Configuration
# IMPORTANT!
# This gist has been transformed into a github repo
# You can find the most recent version there:
# https://github.com/Neo23x0/auditd
# ___ ___ __ __
# / | __ ______/ (_) /_____/ /
# / /| |/ / / / __ / / __/ __ /
# / ___ / /_/ / /_/ / / /_/ /_/ /
# /_/ |_\__,_/\__,_/_/\__/\__,_/
@anter74
anter74 / self-signed-certificate-with-custom-ca.md
Created March 14, 2019 15:03 — forked from fntlnz/self-signed-certificate-with-custom-ca.md
Self Signed Certificate with Custom Root CA

Create Root CA (Done once)

Create Root Key

Attention: this is the key used to sign the certificate requests, anyone holding this can sign certificates on your behalf. So keep it in a safe place!

openssl genrsa -des3 -out rootCA.key 4096
@anter74
anter74 / keygen.sh
Created March 14, 2019 15:03 — forked from sunner/keygen.sh
Generate ca and certification key for libvirt, kvm & spice
#!/bin/bash
SERVER_KEY=server-key.pem
# creating a key for our ca
if [ ! -e ca-key.pem ]; then
openssl genrsa -des3 -out ca-key.pem 1024
fi
# creating a ca
if [ ! -e ca-cert.pem ]; then