Skip to content

Instantly share code, notes, and snippets.

View bdogan's full-sized avatar
🎯
Focusing

Burak Doğan bdogan

🎯
Focusing
View GitHub Profile
@bdogan
bdogan / self-signed-certificate-with-custom-ca.md
Created June 24, 2019 11:06 — 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
@bdogan
bdogan / s3-nginx-log-rotate.sh
Created December 23, 2017 10:40 — forked from mustafaturan/s3-nginx-log-rotate.sh
S3 Nginx Log rotation file
#!/bin/bash
BUCKETNAME="your_s3_bucket"
LOGDIR="/opt/nginx/logs"
LOGDATE=$(date +"%Y%m%d")
LOGFILES=( "access" "ssl-access" )
BOT_LOGFILES=( "bots-access" "bots-ssl-access" )
echo "Moving access logs to dated logs.."