How to regenerate ssl key from Lets'encrypt

Presently i am using ubuntu server os 16.04 with apache web server.
Previously I generate ssl keys by using letsencrypt but unfforntunlity i lost my ssl key from my server machine.When Iam trying to regenerate new keys its show an error message

An unexpected error occurred:
SSLError: [Errno 2] No such file or directory
Please see the logfiles in /var/log/letsencrypt for more details.

Please find the below log file data nano /var/log/letsencrypt/letsencrypt.log
2017-02-17 13:26:11,898:DEBUG:letsencrypt.cli:Root logging level set at 30
2017-02-17 13:26:11,900:INFO:letsencrypt.cli:Saving debug log to /var/log/letsencrypt/letsencrypt.log
2017-02-17 13:26:11,901:DEBUG:letsencrypt.cli:letsencrypt version: 0.4.1
2017-02-17 13:26:11,901:DEBUG:letsencrypt.cli:Arguments: [’–apache’]
2017-02-17 13:26:11,902:DEBUG:letsencrypt.cli:Discovered plugins: PluginsRegistry(PluginEntryPoint#apache,PluginEntryPoint#webroot,PluginEntryPoint#null,PluginEntryPoint#manual,PluginEntryPoint#standalone)
2017-02-17 13:26:11,907:DEBUG:letsencrypt.cli:Requested authenticator apache and installer apache
2017-02-17 13:26:12,324:DEBUG:letsencrypt.display.ops:Single candidate plugin: * apache
Description: Apache Web Server - Alpha
Interfaces: IAuthenticator, IInstaller, IPlugin
Entry point: apache = letsencrypt_apache.configurator:ApacheConfigurator
Initialized: <letsencrypt_apache.configurator.ApacheConfigurator object at 0x7f7f31613b90>
Prep: True
2017-02-17 13:26:12,325:DEBUG:letsencrypt.cli:Selected authenticator <letsencrypt_apache.configurator.ApacheConfigurator object at 0x7f7f31613b90> and installer <letsencrypt_apache.configurator.ApacheConfigurator object at 0x7f7f31613b90>
2017-02-17 13:26:40,923:DEBUG:root:Sending GET request to args: (), kwargs: {}
2017-02-17 13:26:40,951:INFO:requests.packages.urllib3.connectionpool:Starting new HTTPS connection (1):
2017-02-17 13:26:41,172:DEBUG:letsencrypt.cli:Exiting abnormally:
Traceback (most recent call last):
File “/usr/bin/letsencrypt”, line 9, in
load_entry_point(‘letsencrypt==0.4.1’, ‘console_scripts’, ‘letsencrypt’)()
File “/usr/lib/python2.7/dist-packages/letsencrypt/”, line 1986, in main
return config.func(config, plugins)
File “/usr/lib/python2.7/dist-packages/letsencrypt/”, line 660, in run
le_client = _init_le_client(config, authenticator, installer)
File “/usr/lib/python2.7/dist-packages/letsencrypt/”, line 206, in _init_le_client
acc, acme = _determine_account(config)
File “/usr/lib/python2.7/dist-packages/letsencrypt/”, line 191, in _determine_account
config, account_storage, tos_cb=_tos_cb)
File “/usr/lib/python2.7/dist-packages/letsencrypt/”, line 116, in register
acme = acme_from_config_key(config, key)
File “/usr/lib/python2.7/dist-packages/letsencrypt/”, line 41, in acme_from_config_key
return acme_client.Client(config.server, key=key, net=net)
File “/usr/lib/python2.7/dist-packages/acme/”, line 63, in init
File “/usr/lib/python2.7/dist-packages/acme/”, line 627, in get
self._send_request(‘GET’, url, **kwargs), content_type=content_type)
File “/usr/lib/python2.7/dist-packages/acme/”, line 609, in _send_request
response = requests.request(method, url, *args, **kwargs)
File “/usr/lib/python2.7/dist-packages/requests/”, line 53, in request
return session.request(method=method, url=url, **kwargs)
File “/usr/lib/python2.7/dist-packages/requests/”, line 468, in request
resp = self.send(prep, **send_kwargs)
File “/usr/lib/python2.7/dist-packages/requests/”, line 576, in send
r = adapter.send(request, **kwargs)
File “/usr/lib/python2.7/dist-packages/requests/”, line 447, in send
raise SSLError(e, request=request)
SSLError: [Errno 2] No such file or directory

So please help me to resolve the this issue

once again

please actually explain the process and command you used

so people can actually help you :smiley:

Thank you for giving replay to my question
Finally i did succeed in regenerating my ssl certificates from letsencrypt
Simple remove your cache data from the server and regenerate your new ssl certificates from lets encrypt

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.