mirror of
https://github.com/certbot/certbot.git
synced 2026-01-26 07:41:33 +03:00
Add some docs
This commit is contained in:
@@ -255,5 +255,6 @@ def get_cert_info(filename):
|
||||
|
||||
|
||||
def b64_cert_to_pem(b64_der_cert):
|
||||
"""Convert JOSE Base-64 encoded DER cert to PEM."""
|
||||
return M2Crypto.X509.load_cert_der_string(
|
||||
le_util.jose_b64decode(b64_der_cert)).as_pem()
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
"""Lets Encrypt display."""
|
||||
import textwrap
|
||||
|
||||
import dialog
|
||||
@@ -30,6 +31,8 @@ class CommonDisplayMixin(object): # pylint: disable=too-few-public-methods
|
||||
|
||||
|
||||
class NcursesDisplay(CommonDisplayMixin):
|
||||
"""Ncurses-based display."""
|
||||
|
||||
zope.interface.implements(interfaces.IDisplay)
|
||||
|
||||
def __init__(self, width=WIDTH, height=HEIGHT):
|
||||
@@ -107,6 +110,8 @@ class NcursesDisplay(CommonDisplayMixin):
|
||||
|
||||
|
||||
class FileDisplay(CommonDisplayMixin):
|
||||
"""File-based display."""
|
||||
|
||||
zope.interface.implements(interfaces.IDisplay)
|
||||
|
||||
def __init__(self, outfile):
|
||||
|
||||
Reference in New Issue
Block a user