Skip to content

Instantly share code, notes, and snippets.

View real-mielofon's full-sized avatar

Alexey Ponomarev real-mielofon

  • Ozon Tech
  • Russia, Nabarezhniye Chelny
View GitHub Profile
@real-mielofon
real-mielofon / letsencrypt.md
Created September 13, 2017 11:27 — forked from xrstf/letsencrypt.md
Let's Encrypt on Ubuntu 14.04, nginx with webroot auth

Let's Encrypt on Ubuntu 14.04, nginx with webroot auth

This document details how I setup LE on my server. Firstly, install the client as described on http://letsencrypt.readthedocs.org/en/latest/using.html and make sure you can execute it. I put it in /root/letsencrypt.

As it is not possible to change the ports used for the standalone authenticator and I already have a nginx running on port 80/443, I opted to use the webroot method for each of my domains (note that LE does not issue wildcard certificates by design, so you probably want to get a cert for www.example.com and example.com).

Configuration

For this, I placed config files into etc/letsencrypt/configs, named after <domain>.conf. The files are simple:

@real-mielofon
real-mielofon / gist:5002732
Last active December 14, 2015 00:59
Sample exception in RTTI-call safecall function method of interface
program Project94;
uses
Winapi.Windows, System.SysUtils, System.Classes, System.Rtti,
System.Generics.Collections,
Unit163 in 'Unit163.pas';
procedure Main;
var
SafeIntf: ISafeIntf;