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:
5
EULA
5
EULA
@@ -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/.
|
||||
@@ -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
5
letsencrypt/EULA
Normal 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/.
|
||||
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user