Skip to content

Instantly share code, notes, and snippets.

This file has been truncated, but you can view the full file.
Using virtualenv: /root/certbot/venv
Updating dependencies
Resolving dependencies...
1: fact: certbot-pinner is 0.1.0
1: derived: certbot-pinner
1: fact: certbot-pinner depends on certbot-ci (0.32.0.dev0)
1: fact: certbot-pinner depends on certbot-compatibility-test (1.25.0.dev0)
1: fact: certbot-pinner depends on certbot-dns-cloudflare (1.25.0.dev0)
1: fact: certbot-pinner depends on certbot-dns-cloudxns (1.25.0.dev0)
root@avenue-clever:~/certbot# source venv/bin/activate
(venv) root@avenue-clever:~/certbot# ./tools/pinning/current/repin.sh 2>&1 | tee -a repin.log
Updating dependencies
Resolving dependencies...
/root/certbot/venv/lib/python3.8/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
/root/certbot/venv/lib/python3.8/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
InvalidVersion
@unittest.skipIf(filesystem.POSIX_MODE, reason='Test specific to Windows')
def test_foreign_webconfig_multiple_domains(self):
# Covers bug https://github.com/certbot/certbot/issues/9091
achall_2 = achallenges.KeyAuthorizationAnnotatedChallenge(
challb=acme_util.chall_to_challb(challenges.HTTP01(token=b"bingo"), "pending"),
domain="second-thing.com", account_key=KEY)
self.config.webroot_map["second-thing.com"] = self.path
challenge_path = os.path.join(self.path, ".well-known", "acme-challenge")
filesystem.makedirs(challenge_path)
commit 20225392022c23caac34c88d185d3754796e75b9
Author: Alex Zorin <alex@zorin.id.au>
Date: Sat Sep 26 18:27:47 2020 +1000
wip
diff --git a/certbot/certbot/_internal/account.py b/certbot/certbot/_internal/account.py
index c36559032..6c881f743 100644
--- a/certbot/certbot/_internal/account.py
+++ b/certbot/certbot/_internal/account.py
package main
import (
"fmt"
"log"
"os"
"time"
"github.com/miekg/dns"
"github.com/miekg/unbound"
@alexzorin
alexzorin / script.sh
Created January 20, 2017 10:22
Count Let's Encrypt certificates on a cPanel/WHM server
find /var/cpanel/ssl/installed/certs/ -type f -name "*.crt" | xargs -I{} openssl x509 -in {} -inform pem -noout -issuer | grep "O=Let's Encrypt" | wc -l
@alexzorin
alexzorin / main.go
Created November 17, 2016 04:46
One-shot program to send OnApp 4.2 IS Datastore Diagnostics data to InfluxDB
package main
import (
"errors"
"fmt"
"math"
"net/http"
"os"
"strconv"
"time"
// imap2heka
//
// Take things out of IMAP and emit them to heka.
// Keep track of last message id so we dont miss anything after the first run.
//
// i.e.
// $ ./imap2heka
// 2014/12/17 13:26:03 Resuming from message 26166
// 2014/12/17 13:27:09 Delivered-To: user@domain.com
// Received: by 10.170.99.195 with SMTP id q186csp1295558yka; Tue, 16 Dec 2014
@alexzorin
alexzorin / keybase.md
Created March 3, 2014 02:14
keybase.md

Keybase proof

I hereby claim:

  • I am alexzorin on github.
  • I am alexz (https://keybase.io/alexz) on keybase.
  • I have a public key whose fingerprint is 1C4D ED10 4F09 EDBB 7C73 5705 B898 D941 58E4 E30E

To claim this, I am signing this object:

@alexzorin
alexzorin / classify.js
Created July 30, 2013 02:22
Mass IP address country lookup counter. This reads IP addresses off `stdin`, gives them a country classification and outputs the the count as a JSON object to `stdout`. Uses GeoIP-Lite free (but not very accurate) database for the lookup.
var geoip = require("geoip-lite"),
Lazy = require("lazy"),
Chart = require("cli-chart");
var data = {};
new Lazy(process.stdin)
.on("end", function() {
console.log(JSON.stringify(data));
})