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" |
<!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(); |