Skip to content

Instantly share code, notes, and snippets.

View pingometer's full-sized avatar

Pingometer pingometer

View GitHub Profile
@pingometer
pingometer / self-signed-certificate-with-custom-ca.md
Created February 7, 2019 17:50 — 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
{
"custom_key_1": "custom_value_1",
"custom_key_2": "custom_value_2"
}
{
"1": {
"get": "http://pingometer.com",
"headers": {
"Authorization": "123"
}
}
}
{
"1": {
"delete": "http://pingometer.com",
"headers": {
"Authorization": "123"
}
}
}
{
"1": {
"patch": "http://pingometer.com",
"headers": {
"Authorization": "123"
},
"data": {
"Hello": "World"
}
}
{
"1": {
"post": "http://pingometer.com",
"headers": {
"Authorization": "123"
},
"data": {
"Hello": "World"
}
}
{
"1": {
"get": "http://pingometer.com"
},
"2": {
"fill_by_xpath": "/html/body/footer/div[1]/div[1]/form/input[1]|[email protected]"
},
"3": {
"click_by_xpath": "/html/body/footer/div[1]/div[1]/form/input[3]"
},
@pingometer
pingometer / gist:ca0bb3771cb5b5b6d4b8
Last active August 29, 2015 14:23
Alert - Group
{
"alert": [
{
"alert_contacts": ["5476bghf7465856fh57anv91"],
"created_at": "2015-03-05T01:00:15.173000",
"id": "5476bac0be65856fh57anv94",
"name": "Group #1",
"status": 1,
"updated_at": "2015-03-05T01:00:15.173000",
"type": "group"
#!/bin/bash
echo "Generating an SSL private key to sign your certificate..."
openssl genrsa -des3 -out myssl.key 1024
echo "Generating a Certificate Signing Request..."
openssl req -new -key myssl.key -out myssl.csr
echo "Removing passphrase from key (for nginx)..."
cp myssl.key myssl.key.org
openssl rsa -in myssl.key.org -out myssl.key
AttemptID:attempt_1433026885621_0001_m_000059_0 Timed out after 600 secs
AttemptID:attempt_1433026885621_0001_m_000084_0 Timed out after 600 secs
AttemptID:attempt_1433026885621_0001_m_000084_1 Timed out after 600 secs
AttemptID:attempt_1433026885621_0001_m_000084_2 Timed out after 600 secs
Streaming Command Failed!