Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/certbot/certbot.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/.gitignore3
-rw-r--r--examples/cli.ini23
-rw-r--r--examples/dev-cli.ini20
-rwxr-xr-xexamples/generate-csr.sh28
-rw-r--r--examples/openssl.cnf5
-rw-r--r--examples/plugins/certbot_example_plugins.py31
-rw-r--r--examples/plugins/setup.py17
7 files changed, 0 insertions, 127 deletions
diff --git a/examples/.gitignore b/examples/.gitignore
deleted file mode 100644
index abaf425d1..000000000
--- a/examples/.gitignore
+++ /dev/null
@@ -1,3 +0,0 @@
-# generate-csr.sh:
-/key.pem
-/csr.der \ No newline at end of file
diff --git a/examples/cli.ini b/examples/cli.ini
deleted file mode 100644
index dbaa9c599..000000000
--- a/examples/cli.ini
+++ /dev/null
@@ -1,23 +0,0 @@
-# This is an example of the kind of things you can do in a configuration file.
-# All flags used by the client can be configured here. Run Certbot with
-# "--help" to learn more about the available options.
-#
-# Note that these options apply automatically to all use of Certbot for
-# obtaining or renewing certificates, so options specific to a single
-# certificate on a system with several certificates should not be placed
-# here.
-
-# Use a 4096 bit RSA key instead of 2048
-rsa-key-size = 4096
-
-# Uncomment and update to register with the specified e-mail address
-# email = foo@example.com
-
-# Uncomment to use the standalone authenticator on port 443
-# authenticator = standalone
-# standalone-supported-challenges = tls-sni-01
-
-# Uncomment to use the webroot authenticator. Replace webroot-path with the
-# path to the public_html / webroot folder being served by your web server.
-# authenticator = webroot
-# webroot-path = /usr/share/nginx/html
diff --git a/examples/dev-cli.ini b/examples/dev-cli.ini
deleted file mode 100644
index a405a0aef..000000000
--- a/examples/dev-cli.ini
+++ /dev/null
@@ -1,20 +0,0 @@
-# Always use the staging/testing server - avoids rate limiting
-server = https://acme-staging-v02.api.letsencrypt.org/directory
-
-# This is an example configuration file for developers
-config-dir = /tmp/le/conf
-work-dir = /tmp/le/conf
-logs-dir = /tmp/le/logs
-
-# make sure to use a valid email and domains!
-email = foo@example.com
-domains = example.com
-
-text = True
-agree-tos = True
-debug = True
-# Unfortunately, it's not possible to specify "verbose" multiple times
-# (correspondingly to -vvvvvv)
-verbose = True
-
-authenticator = standalone
diff --git a/examples/generate-csr.sh b/examples/generate-csr.sh
deleted file mode 100755
index 55f6c7b9f..000000000
--- a/examples/generate-csr.sh
+++ /dev/null
@@ -1,28 +0,0 @@
-#!/bin/sh
-# This script generates a simple SAN CSR to be used with Let's Encrypt
-# CA. Mostly intended for "auth --csr" testing, but, since it's easily
-# auditable, feel free to adjust it and use it on your production web
-# server.
-
-if [ "$#" -lt 1 ]
-then
- echo "Usage: $0 domain [domain...]" >&2
- exit 1
-fi
-
-domains="DNS:$1"
-shift
-for x in "$@"
-do
- domains="$domains,DNS:$x"
-done
-
-SAN="$domains" openssl req -config "${OPENSSL_CNF:-openssl.cnf}" \
- -new -nodes -subj '/' -reqexts san \
- -out "${CSR_PATH:-csr.der}" \
- -keyout "${KEY_PATH:-key.pem}" \
- -newkey rsa:2048 \
- -outform DER
-# 512 or 1024 too low for Boulder, 2048 is smallest for tests
-
-echo "You can now run: certbot auth --csr ${CSR_PATH:-csr.der}"
diff --git a/examples/openssl.cnf b/examples/openssl.cnf
deleted file mode 100644
index a3e6f3895..000000000
--- a/examples/openssl.cnf
+++ /dev/null
@@ -1,5 +0,0 @@
-[ req ]
-distinguished_name = req_distinguished_name
-[ req_distinguished_name ]
-[ san ]
-subjectAltName=${ENV::SAN}
diff --git a/examples/plugins/certbot_example_plugins.py b/examples/plugins/certbot_example_plugins.py
deleted file mode 100644
index 9dec2e108..000000000
--- a/examples/plugins/certbot_example_plugins.py
+++ /dev/null
@@ -1,31 +0,0 @@
-"""Example Certbot plugins.
-
-For full examples, see `certbot.plugins`.
-
-"""
-import zope.interface
-
-from certbot import interfaces
-from certbot.plugins import common
-
-
-@zope.interface.implementer(interfaces.IAuthenticator)
-@zope.interface.provider(interfaces.IPluginFactory)
-class Authenticator(common.Plugin):
- """Example Authenticator."""
-
- description = "Example Authenticator plugin"
-
- # Implement all methods from IAuthenticator, remembering to add
- # "self" as first argument, e.g. def prepare(self)...
-
-
-@zope.interface.implementer(interfaces.IInstaller)
-@zope.interface.provider(interfaces.IPluginFactory)
-class Installer(common.Plugin):
- """Example Installer."""
-
- description = "Example Installer plugin"
-
- # Implement all methods from IInstaller, remembering to add
- # "self" as first argument, e.g. def get_all_names(self)...
diff --git a/examples/plugins/setup.py b/examples/plugins/setup.py
deleted file mode 100644
index 4538e83b8..000000000
--- a/examples/plugins/setup.py
+++ /dev/null
@@ -1,17 +0,0 @@
-from setuptools import setup
-
-
-setup(
- name='certbot-example-plugins',
- package='certbot_example_plugins.py',
- install_requires=[
- 'certbot',
- 'zope.interface',
- ],
- entry_points={
- 'certbot.plugins': [
- 'example_authenticator = certbot_example_plugins:Authenticator',
- 'example_installer = certbot_example_plugins:Installer',
- ],
- },
-)