1
0
mirror of https://github.com/certbot/certbot.git synced 2026-01-21 19:01:07 +03:00

Merge pull request #282 from kuba/eula

EULA using pkg_resources (fixes #278)
This commit is contained in:
James Kasten
2015-03-11 15:00:39 -04:00
4 changed files with 12 additions and 9 deletions

5
EULA
View File

@@ -1,5 +0,0 @@
This is a PREVIEW RELEASE of a client application for the Let's Encrypt certificate authority and other services using the ACME protocol. The Let's Encrypt certificate authority is NOT YET ISSUING CERTIFICATES TO THE PUBLIC.
Until publicly-trusted certificates can be issued by Let's Encrypt, this software CANNOT OBTAIN A PUBLICLY-TRUSTED CERTIFICATE FOR YOUR WEB SERVER. You should only use this program if you are a developer interested in experimenting with the ACME protocol or in helping to improve this software. If you want to configure your web site with HTTPS in the meantime, please obtain a certificate from a different authority.
For updates on the status of Let's Encrypt, please visit the Let's Encrypt home page at https://letsencrypt.org/.

1
EULA Symbolic link
View File

@@ -0,0 +1 @@
letsencrypt/EULA

View File

@@ -2,6 +2,7 @@ include README.rst
include CHANGES.rst
include CONTRIBUTING.rst
include linter_plugin.py
include letsencrypt/EULA
recursive-include letsencrypt *.json
recursive-include letsencrypt *.conf
recursive-include letsencrypt/client/tests/testdata *

5
letsencrypt/EULA Normal file
View File

@@ -0,0 +1,5 @@
This is a PREVIEW RELEASE of a client application for the Let's Encrypt certificate authority and other services using the ACME protocol. The Let's Encrypt certificate authority is NOT YET ISSUING CERTIFICATES TO THE PUBLIC.
Until publicly-trusted certificates can be issued by Let's Encrypt, this software CANNOT OBTAIN A PUBLICLY-TRUSTED CERTIFICATE FOR YOUR WEB SERVER. You should only use this program if you are a developer interested in experimenting with the ACME protocol or in helping to improve this software. If you want to configure your web site with HTTPS in the meantime, please obtain a certificate from a different authority.
For updates on the status of Let's Encrypt, please visit the Let's Encrypt home page at https://letsencrypt.org/.

View File

@@ -7,6 +7,7 @@
import argparse
import logging
import os
import pkg_resources
import sys
import confargparse
@@ -191,10 +192,10 @@ def main(): # pylint: disable=too-many-branches, too-many-statements
def display_eula():
"""Displays the end user agreement."""
with open("EULA") as eula_file:
if not zope.component.getUtility(interfaces.IDisplay).yesno(
eula_file.read(), "Agree", "Cancel"):
sys.exit(0)
eula = pkg_resources.resource_string("letsencrypt", "EULA")
if not zope.component.getUtility(interfaces.IDisplay).yesno(
eula, "Agree", "Cancel"):
sys.exit(0)
def read_file(filename):