-
Use csplit to split the full chain.
$ csplit -f cert- /etc/letsencrypt/live/path/to/fullchain.pem '/-----BEGIN CERTIFICATE-----/' '{*}'
-
Get the hashes from the parts
$ openssl x509 -noout -in cert-00 -pubkey | openssl rsa -pubin -outform der |openssl dgst -sha256 -binary | base64
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"bytes" | |
"crypto/sha256" | |
"crypto/tls" | |
"crypto/x509" | |
"log" | |
"net" | |
"net/http" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
struct Node | |
{ | |
int data; | |
struct Node *next; | |
}; | |
void Print(Node *head) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = function(sequelize, DataTypes) { | |
var Task = sequelize.define('Task', { | |
title: DataTypes.STRING | |
}, { | |
classMethods: { | |
associate: function(models) { | |
Task.belongsTo(models.User) | |
} | |
} | |
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Red Hat Enterprise Linux 5 Adminstration | |
Hacking Roomba | |
Agile Project Management With Scrum | |
The Art of Capacity Planning | |
JavaScript for Web Developers | |
Begining Lua Programming | |
Hacking del.icio.us | |
Professional Ajax | |
The Next 100 Years | |
Mausi |
I hereby claim:
- I am ngerakines on github.
- I am ngerakines (https://keybase.io/ngerakines) on keybase.
- I have a public key whose fingerprint is 9530 23D8 48C3 5059 A2E2 4888 33D4 3D85 4F96 B2E4
To claim this, I am signing this object:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public abstract class AbstractTemplate { | |
protected abstract String getTemplateFile(); | |
public String run() { | |
return "rendered template from " + getTemplateFile(); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python2 | |
import sys | |
import os | |
from os.path import join | |
import tarfile | |
import shutil | |
import popen2 | |
from optparse import OptionParser | |
import logging |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public interface CalcService extends RespondingService { | |
void add(final CallbackMessageController<CalcProto.Results> messageController, final CalcProto.Add add); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
parent=${PWD##*/} | |
if [ -f 'repos' ] | |
then | |
echo "`repos` file exists." | |
for i in `cat repos`; do | |
if [ -d $i ] | |
then |