Skip to content

Instantly share code, notes, and snippets.

View sebastienliu's full-sized avatar

Siwen LIU sebastienliu

  • Australia Sydney
View GitHub Profile
@sebastienliu
sebastienliu / gist:2da19d4e96a874cd312d3e06de08afe8
Created May 31, 2019 03:58 — forked from mtigas/gist:952344
Mini tutorial for configuring client-side SSL certificates.

Client-side SSL

For excessively paranoid client authentication.


Updated Apr 5 2019:

because this is a gist from 2011 that people stumble into and maybe you should AES instead of 3DES in the year of our lord 2019.

some other notes:

@sebastienliu
sebastienliu / Makefile
Last active September 10, 2018 02:21
Launch shell commands in Makefile
FILENAME_AND_PATH="./foo.txt"
filename_only=$(basename $(FILENAME_AND_PATH))
.PHONY: foo_a
foo_a:
$(eval filename_only := $(shell basename $(FILENAME_AND_PATH)))
@echo filename_only=[$(filename_only)]
@sebastienliu
sebastienliu / gist:ff351326d03d6e51a2b6a4946631c953
Created August 1, 2018 01:59
Establishing WordPress connection to a remote RDS
Environment: WordPress, PHP 7 and Apache 2.4
Issue: WordPress cannot establish connection to a remote RDS
Solutions:
Set value of `setsebool -P httpd_can_network_connect_db1` to 0