Skip to content

Instantly share code, notes, and snippets.

@spuglisi
spuglisi / self-signed-certificate-with-custom-ca.md
Created February 10, 2019 18:02 — 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
#open ssl
sudo openssl genrsa -out localhost.key 2048
sudo openssl req -new -x509 -key localhost.key -out localhost.crt -days 3650 -subj /CN=localhost
sudo security add-trusted-cert -d -r trustRoot -k /Library/Keychains/System.keychain localhost.crt
...
#http-ssl.conf
SSLCertificateFile "/Applications/XAMPP/xamppfiles/etc/localhost.crt"
#SSLCertificateFile "/Applications/XAMPP/xamppfiles/etc/ssl.crt/server.crt"
....
SSLCertificateKeyFile "/Applications/XAMPP/xamppfiles/etc/localhost.key"
@spuglisi
spuglisi / xampp_php7_xdebug.md
Created February 10, 2019 01:05 — forked from odan/xampp_php7_xdebug.md
Installing Xdebug for XAMPP

Installing Xdebug for XAMPP with PHP 7.x

Requirements

Setup

@spuglisi
spuglisi / jed-test.html
Created February 14, 2018 15:46
simple jed integration
<!DOCTYPE html>
<html>
<head>
<meta charset="ISO-8859-1">
<title>Insert title here</title>
<script src="jed.js"></script>
</head>
<body>
<script>
var request = new XMLHttpRequest();