2018-03-08 08:34:14,501:DEBUG:certbot.main:certbot version: 0.21.1
2018-03-08 08:34:14,503:DEBUG:certbot.main:Arguments: [’–manual’, ‘–manual-public-ip-logging-ok’, ‘–manual-auth-hook’, ‘/etc/letsencrypt/lexicon-provider_route53.sh create’, ‘–manual-cleanup-hook’, ‘/etc/letsencrypt/lexicon-provider_route53.sh delete’, ‘–preferred-challenges’, ‘dns’, ‘-d’, ‘network.lemoney.in’]
2018-03-08 08:34:14,504:DEBUG:certbot.main:Discovered plugins: PluginsRegistry(PluginEntryPoint#apache,PluginEntryPoint#manual,PluginEntryPoint#nginx,PluginEntryPoint#null,PluginEntryPoint#standalone,PluginEntryPoint#webroot)
2018-03-08 08:34:14,553:DEBUG:certbot.log:Root logging level set at 20
2018-03-08 08:34:14,555:INFO:certbot.log:Saving debug log to /var/log/letsencrypt/letsencrypt.log
2018-03-08 08:34:14,556:DEBUG:certbot.plugins.selection:Requested authenticator manual and installer None
2018-03-08 08:34:14,560:DEBUG:certbot.plugins.selection:Single candidate plugin: * manual
Description: Manual configuration or run your own shell scripts
Interfaces: IAuthenticator, IPlugin
Entry point: manual = certbot.plugins.manual:Authenticator
Initialized: <certbot.plugins.manual.Authenticator object at 0x10bef5208>
Prep: True
2018-03-08 08:34:14,561:DEBUG:certbot.plugins.selection:Selected authenticator <certbot.plugins.manual.Authenticator object at 0x10bef5208> and installer None
2018-03-08 08:34:14,562:INFO:certbot.plugins.selection:Plugins selected: Authenticator manual, Installer None
2018-03-08 08:34:14,569:DEBUG:certbot.main:Picked account: <Account(RegistrationResource(body=Registration(key=JWKRSA(key=<ComparableRSAKey(<cryptography.hazmat.backends.openssl.rsa._RSAPublicKey object at 0x10e1ceb00>)>), contact=(‘mailto:amitraj@languageindia.com’,), agreement=‘https://letsencrypt.org/documents/LE-SA-v1.2-November-15-2017.pdf’, status=‘valid’), uri=‘https://acme-v01.api.letsencrypt.org/acme/reg/30671455’, new_authzr_uri=‘https://acme-v01.api.letsencrypt.org/acme/new-authz’, terms_of_service=‘https://letsencrypt.org/documents/LE-SA-v1.2-November-15-2017.pdf’), c5fc51df65cecfa7d73262fe8d3fb55e, Meta(creation_dt=datetime.datetime(2018, 3, 7, 6, 28, 30, tzinfo=), creation_host=‘Amits-MacBook-Pro.local’))>
2018-03-08 08:34:14,590:DEBUG:acme.client:Sending GET request to https://acme-v01.api.letsencrypt.org/directory.
2018-03-08 08:34:14,757:DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): acme-v01.api.letsencrypt.org
2018-03-08 08:34:15,630:DEBUG:urllib3.connectionpool:https://acme-v01.api.letsencrypt.org:443 “GET /directory HTTP/1.1” 200 562
2018-03-08 08:34:15,631:DEBUG:acme.client:Received response:
HTTP 200
Server: nginx
Content-Type: application/json
Content-Length: 562
Replay-Nonce: brRHLKF4aoRUQdT1WjIAGMVBA3QLaiqI9mnBb6EJgBY
X-Frame-Options: DENY
Strict-Transport-Security: max-age=604800
Expires: Thu, 08 Mar 2018 08:34:15 GMT
Cache-Control: max-age=0, no-cache, no-store
Pragma: no-cache
Date: Thu, 08 Mar 2018 08:34:15 GMT
Connection: keep-alive
b’{\n “ioun85GesSM”: “Adding random entries to the directory”,\n “key-change”: “https://acme-v01.api.letsencrypt.org/acme/key-change”,\n “meta”: {\n “terms-of-service”: “https://letsencrypt.org/documents/LE-SA-v1.2-November-15-2017.pdf”\n },\n “new-authz”: “https://acme-v01.api.letsencrypt.org/acme/new-authz”,\n “new-cert”: “https://acme-v01.api.letsencrypt.org/acme/new-cert”,\n “new-reg”: “https://acme-v01.api.letsencrypt.org/acme/new-reg”,\n “revoke-cert”: “https://acme-v01.api.letsencrypt.org/acme/revoke-cert”\n}'
2018-03-08 08:34:15,633:INFO:certbot.main:Obtaining a new certificate
2018-03-08 08:34:15,633:DEBUG:acme.client:Requesting fresh nonce
2018-03-08 08:34:15,633:DEBUG:acme.client:Sending HEAD request to https://acme-v01.api.letsencrypt.org/acme/new-authz.
2018-03-08 08:34:15,995:DEBUG:urllib3.connectionpool:https://acme-v01.api.letsencrypt.org:443 “HEAD /acme/new-authz HTTP/1.1” 405 0
2018-03-08 08:34:15,996:DEBUG:acme.client:Received response:
HTTP 405
Server: nginx
Content-Type: application/problem+json
Content-Length: 91
Allow: POST
Replay-Nonce: YIzzOXYgoKHUOV9UFV0CRLLIK6SRwGdpYKFr54NJSB4
Expires: Thu, 08 Mar 2018 08:34:15 GMT
Cache-Control: max-age=0, no-cache, no-store
Pragma: no-cache
Date: Thu, 08 Mar 2018 08:34:15 GMT
Connection: keep-alive
b’‘
2018-03-08 08:34:15,997:DEBUG:acme.client:Storing nonce: YIzzOXYgoKHUOV9UFV0CRLLIK6SRwGdpYKFr54NJSB4
2018-03-08 08:34:15,997:DEBUG:acme.client:JWS payload:
b’{\n “identifier”: {\n “type”: “dns”,\n “value”: “network.lemoney.in”\n },\n “resource”: “new-authz”\n}'
2018-03-08 08:34:16,003:DEBUG:acme.client:Sending POST request to https://acme-v01.api.letsencrypt.org/acme/new-authz:
{
“protected”: “",
“signature”: "**”,
“payload”: “************************”
}
2018-03-08 08:34:16,690:DEBUG:urllib3.connectionpool:https://acme-v01.api.letsencrypt.org:443 “POST /acme/new-authz HTTP/1.1” 201 733
2018-03-08 08:34:16,691:DEBUG:acme.client:Received response:
HTTP 201
Server: nginx
Content-Type: application/json
Content-Length: 733
Boulder-Requester: 30671455
Link: https://acme-v01.api.letsencrypt.org/acme/new-cert;rel="next"
Location: https://acme-v01.api.letsencrypt.org/acme/authz/K3iKKGyzg-YDFBIt4Vqfccm8gjK1MdJIOmd_XBPyyX4
Replay-Nonce: ItpUX4QHJabXaDv00Mf7Wu5PXv9k28hXWDQI51aruKo
X-Frame-Options: DENY
Strict-Transport-Security: max-age=604800
Expires: Thu, 08 Mar 2018 08:34:16 GMT
Cache-Control: max-age=0, no-cache, no-store
Pragma: no-cache
Date: Thu, 08 Mar 2018 08:34:16 GMT
Connection: keep-alive
b’{\n “identifier”: {\n “type”: “dns”,\n “value”: “network.lemoney.in”\n },\n “status”: “pending”,\n “expires”: “2018-03-15T08:34:16.479077358Z”,\n “challenges”: [\n {\n “type”: “http-01”,\n “status”: “pending”,\n “uri”: “https://acme-v01.api.letsencrypt.org/acme/challenge/K3iKKGyzg-YDFBIt4Vqfccm8gjK1MdJIOmd_XBPyyX4/3735111077”,\n “token”: “UIRMbp01mzDbYOsI-37FoMwus_TgCjGwx4vqpW0ovWE”\n },\n {\n “type”: “dns-01”,\n “status”: “pending”,\n “uri”: “https://acme-v01.api.letsencrypt.org/acme/challenge/K3iKKGyzg-YDFBIt4Vqfccm8gjK1MdJIOmd_XBPyyX4/3735111078”,\n “token”: “d3hy6DGrFvvX1aGNn0yPmChixUuUutka4o1rcnp2UoQ”\n }\n ],\n “combinations”: [\n [\n 0\n ],\n [\n 1\n ]\n ]\n}‘
2018-03-08 08:34:16,691:DEBUG:acme.client:Storing nonce: ItpUX4QHJabXaDv00Mf7Wu5PXv9k28hXWDQI51aruKo
2018-03-08 08:34:16,692:INFO:certbot.auth_handler:Performing the following challenges:
2018-03-08 08:34:16,692:INFO:certbot.auth_handler:dns-01 challenge for network.lemoney.in
2018-03-08 08:34:23,125:INFO:certbot.hooks:Output from lexicon-provider_route53.sh:
Requirement already satisfied: dns-lexicon in /usr/local/lib/python3.6/site-packages
Requirement already satisfied: requests in /usr/local/lib/python3.6/site-packages (from dns-lexicon)
Requirement already satisfied: tldextract in /usr/local/lib/python3.6/site-packages (from dns-lexicon)
Requirement already satisfied: future in /usr/local/lib/python3.6/site-packages (from dns-lexicon)
Requirement already satisfied: certifi>=2017.4.17 in /usr/local/lib/python3.6/site-packages (from requests->dns-lexicon)
Requirement already satisfied: chardet<3.1.0,>=3.0.2 in /usr/local/lib/python3.6/site-packages (from requests->dns-lexicon)
Requirement already satisfied: urllib3<1.23,>=1.21.1 in /usr/local/lib/python3.6/site-packages (from requests->dns-lexicon)
Requirement already satisfied: idna<2.7,>=2.5 in /usr/local/lib/python3.6/site-packages (from requests->dns-lexicon)
Requirement already satisfied: requests-file>=1.4 in /usr/local/lib/python3.6/site-packages (from tldextract->dns-lexicon)
Requirement already satisfied: setuptools in /usr/local/lib/python3.6/site-packages (from tldextract->dns-lexicon)
Requirement already satisfied: six in /usr/local/lib/python3.6/site-packages (from requests-file>=1.4->tldextract->dns-lexicon)
Requirement already satisfied: dns-lexicon[route53] in /usr/local/lib/python3.6/site-packages
Requirement already satisfied: requests in /usr/local/lib/python3.6/site-packages (from dns-lexicon[route53])
Requirement already satisfied: tldextract in /usr/local/lib/python3.6/site-packages (from dns-lexicon[route53])
Requirement already satisfied: future in /usr/local/lib/python3.6/site-packages (from dns-lexicon[route53])
Requirement already satisfied: boto3 in /usr/local/lib/python3.6/site-packages (from dns-lexicon[route53])
Requirement already satisfied: certifi>=2017.4.17 in /usr/local/lib/python3.6/site-packages (from requests->dns-lexicon[route53])
Requirement already satisfied: idna<2.7,>=2.5 in /usr/local/lib/python3.6/site-packages (from requests->dns-lexicon[route53])
Requirement already satisfied: chardet<3.1.0,>=3.0.2 in /usr/local/lib/python3.6/site-packages (from requests->dns-lexicon[route53])
Requirement already satisfied: urllib3<1.23,>=1.21.1 in /usr/local/lib/python3.6/site-packages (from requests->dns-lexicon[route53])
Requirement already satisfied: setuptools in /usr/local/lib/python3.6/site-packages (from tldextract->dns-lexicon[route53])
Requirement already satisfied: requests-file>=1.4 in /usr/local/lib/python3.6/site-packages (from tldextract->dns-lexicon[route53])
Requirement already satisfied: jmespath<1.0.0,>=0.7.1 in /usr/local/lib/python3.6/site-packages (from boto3->dns-lexicon[route53])
Requirement already satisfied: s3transfer<0.2.0,>=0.1.10 in /usr/local/lib/python3.6/site-packages (from boto3->dns-lexicon[route53])
Requirement already satisfied: botocore<1.10.0,>=1.9.5 in /usr/local/lib/python3.6/site-packages (from boto3->dns-lexicon[route53])
Requirement already satisfied: six in /usr/local/lib/python3.6/site-packages (from requests-file>=1.4->tldextract->dns-lexicon[route53])
Requirement already satisfied: python-dateutil<3.0.0,>=2.1 in /usr/local/lib/python3.6/site-packages (from botocore<1.10.0,>=1.9.5->boto3->dns-lexicon[route53])
Requirement already satisfied: docutils>=0.10 in /usr/local/lib/python3.6/site-packages (from botocore<1.10.0,>=1.9.5->boto3->dns-lexicon[route53])
Arguments: Namespace(action=‘create’, auth_access_key=‘XXXXXXXXXXXXXXXXXXXX’, auth_access_secret=‘YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY’, auth_token=None, auth_username=None, content=‘EZF5WlpXnFPsmQ97UGFk2XdHCOeEa54f8VQqVllv55E’, delegated=None, domain=‘network.lemoney.in’, identifier=None, log_level=‘DEBUG’, name=’_acme-challenge.network.lemoney.in’, priority=None, private_zone=None, provider_name=‘route53’, ttl=None, type=‘TXT’)
Loading variable profile from defaults.
Loading variable config_file from defaults.
Loading variable credentials_file from defaults.
Loading variable data_path from defaults.
Loading variable profile from defaults.
Loading variable region from defaults.
Loading variable profile from defaults.
Loading variable ca_bundle from defaults.
Loading variable profile from defaults.
Loading variable api_versions from defaults.
Loading JSON file: /usr/local/lib/python3.6/site-packages/botocore/data/endpoints.json
Loading variable profile from defaults.
Event choose-service-name: calling handler <function handle_service_name_alias at 0x10f07e8c8>
Loading JSON file: /usr/local/lib/python3.6/site-packages/botocore/data/route53/2013-04-01/service-2.json
Event creating-client-class.route53: calling handler <function add_generate_presigned_url at 0x10f05b400>
The s3 config key is not a dictionary type, ignoring its value of: None
Setting route53 timeout as (60, 60)
Loading JSON file: /usr/local/lib/python3.6/site-packages/botocore/data/_retry.json
Registering retry handlers for service: route53
Event before-parameter-build.route53.ListHostedZonesByName: calling handler <function fix_route53_ids at 0x10f097048>
Event before-parameter-build.route53.ListHostedZonesByName: calling handler <function generate_idempotent_uuid at 0x10f091ea0>
Making request for OperationModel(name=ListHostedZonesByName) (verify_ssl=True) with params: {‘url_path’: ‘/2013-04-01/hostedzonesbyname’, ‘query_string’: {}, ‘method’: ‘GET’, ‘headers’: {‘User-Agent’: ‘Boto3/1.6.5 Python/3.6.4 Darwin/17.3.0 Botocore/1.9.5’}, ‘body’: b’’, ‘url’: ‘https://route53.amazonaws.com/2013-04-01/hostedzonesbyname’, ‘context’: {‘client_region’: ‘aws-global’, ‘client_config’: <botocore.config.Config object at 0x10f534780>, ‘has_streaming_input’: False, ‘auth_type’: None}}
Event request-created.route53.ListHostedZonesByName: calling handler <bound method RequestSigner.handler of <botocore.signers.RequestSigner object at 0x10f534710>>
Event choose-signer.route53.ListHostedZonesByName: calling handler <function set_operation_specific_signer at 0x10f091d90>
Calculating signature using v4 auth.
CanonicalRequest:
GET
/2013-04-01/hostedzonesbyname
host:route53.amazonaws.com
x-amz-date:20180308T083421Z
host;x-amz-date
e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
StringToSign:
AWS4-HMAC-SHA256
20180308T083421Z
20180308/us-east-1/route53/aws4_request
1bc31affa78f9086a6aa6f588fd3ad20549c5e934e7ee8b2eae99cfb295c85c6
Signature:
7af6c098343c182e7b0612667daa02bfba79aac75c4ccebdca675b44556db595
Sending http request: <PreparedRequest [GET]>
Starting new HTTPS connection (1): route53.amazonaws.com
"GET /2013-04-01/hostedzonesbyname HTTP/1.1" 200 209
Response headers: {‘x-amzn-requestid’: ‘80bafc32-22ab-11e8-b504-2977d671c702’, ‘content-type’: ‘text/xml’, ‘content-length’: ‘209’, ‘date’: ‘Thu, 08 Mar 2018 08:34:22 GMT’}
Response body:
b’<?xml version="1.0"?>\nfalse100’
Event needs-retry.route53.ListHostedZonesByName: calling handler <botocore.retryhandler.RetryHandler object at 0x10f534b00>
No retry needed.
2018-03-08 08:34:23,125:ERROR:certbot.hooks:Hook command “/etc/letsencrypt/lexicon-provider_route53.sh create” returned error code 255
2018-03-08 08:34:23,126:ERROR:certbot.hooks:Error output from lexicon-provider_route53.sh:
The directory ‘/Users/amitraj/Library/Caches/pip/http’ or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo’s -H flag.
The directory ‘/Users/amitraj/Library/Caches/pip’ or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo’s -H flag.
The directory ‘/Users/amitraj/Library/Caches/pip/http’ or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo’s -H flag.
The directory ‘/Users/amitraj/Library/Caches/pip’ or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo’s -H flag.
Traceback (most recent call last):
File “/usr/local/lib/python3.6/site-packages/lexicon/providers/route53.py”, line 115, in authenticate
hz for hz in hosted_zones
StopIteration
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “/usr/local/bin/lexicon”, line 11, in
load_entry_point(‘dns-lexicon==2.1.21’, ‘console_scripts’, ‘lexicon’)()
File “/usr/local/lib/python3.6/site-packages/lexicon/main.py”, line 72, in main
client.execute()
File “/usr/local/lib/python3.6/site-packages/lexicon/client.py”, line 38, in execute
self.provider.authenticate()
File “/usr/local/lib/python3.6/site-packages/lexicon/providers/route53.py”, line 120, in authenticate
raise Exception(‘No domain found’)
Exception: No domain found
2018-03-08 08:34:32,716:DEBUG:certbot.log:Exiting abnormally:
Traceback (most recent call last):
File “/usr/local/bin/certbot”, line 11, in
load_entry_point(‘certbot==0.21.1’, ‘console_scripts’, ‘certbot’)()
File “/usr/local/Cellar/certbot/0.21.1_1/libexec/lib/python3.6/site-packages/certbot/main.py”, line 1240, in main
return config.func(config, plugins)
File “/usr/local/Cellar/certbot/0.21.1_1/libexec/lib/python3.6/site-packages/certbot/main.py”, line 1120, in certonly
lineage = _get_and_save_cert(le_client, config, domains, certname, lineage)
File “/usr/local/Cellar/certbot/0.21.1_1/libexec/lib/python3.6/site-packages/certbot/main.py”, line 118, in _get_and_save_cert
lineage = le_client.obtain_and_enroll_certificate(domains, certname)
File “/usr/local/Cellar/certbot/0.21.1_1/libexec/lib/python3.6/site-packages/certbot/client.py”, line 357, in obtain_and_enroll_certificate
certr, chain, key, _ = self.obtain_certificate(domains)
File “/usr/local/Cellar/certbot/0.21.1_1/libexec/lib/python3.6/site-packages/certbot/client.py”, line 318, in obtain_certificate
self.config.allow_subset_of_names)
File “/usr/local/Cellar/certbot/0.21.1_1/libexec/lib/python3.6/site-packages/certbot/auth_handler.py”, line 81, in get_authorizations
self._respond(resp, best_effort)
File “/usr/local/Cellar/certbot/0.21.1_1/libexec/lib/python3.6/site-packages/certbot/auth_handler.py”, line 138, in _respond
self._poll_challenges(chall_update, best_effort)
File “/usr/local/Cellar/certbot/0.21.1_1/libexec/lib/python3.6/site-packages/certbot/auth_handler.py”, line 202, in _poll_challenges
raise errors.FailedChallenges(all_failed_achalls)
certbot.errors.FailedChallenges: Failed authorization procedure. network.lemoney.in (dns-01): urn:acme:error:connection :: The server could not connect to the client to verify the domain :: DNS problem: NXDOMAIN looking up TXT for _acme-challenge.network.lemoney.in