Skip to content

Instantly share code, notes, and snippets.

View rkasigi's full-sized avatar

Rendi Kasigi rkasigi

View GitHub Profile
@rkasigi
rkasigi / ca.md
Created March 21, 2019 11:20 — forked from soarez/ca.md
How to setup your own CA with OpenSSL

How to setup your own CA with OpenSSL

For educational reasons I've decided to create my own CA. Here is what I learned.

First things first

Lets get some context first.

Setting up a SSL Cert from Comodo

Purchasing a Comodo PositiveSSL cert via gogetssl.com and installing it on an Nginx server.

Purchase the cert

Prior to purchasing a cert, you need to generate a private key, and a CSR file

@rkasigi
rkasigi / MultiConnectionSupport.java
Last active October 13, 2017 09:18 — forked from mihkels/MultiConnectionSupport.java
Spring Boot with Letsencrypt SSL certificate support
@Configuration
public class MultiConnectionSupport {
@Value("${server.port}")
private int serverPort;
@Value("${server.http.port}")
private int httpServerPort;
@Bean
public EmbeddedServletContainerFactory servletContainer() {
@rkasigi
rkasigi / nginx-alias-with-php-fpm.conf
Last active September 7, 2017 04:09
nginx alias with php-fpm
location /alias-name {
alias /data/path-alias-name;
location ~ \.php$ {
fastcgi_split_path_info ^(.+?\.php)(/.*)?$;
fastcgi_pass 127.0.0.1:9000;
#fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $request_filename;
include fastcgi_params;
@rkasigi
rkasigi / osx-random-string.txt
Last active December 28, 2024 16:43
OSX Generate Random String
openssl rand -base64 6
openssl rand -hex 4
openssl rand -base64 8 | md5 | head -c8;echo
openssl rand -base64 6
ping -c 1 yahoo.com |md5 | head -c8; echo