Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: 'module' object has no attribute 'rand' #4

Open
Sakorah opened this issue Nov 2, 2017 · 1 comment
Open

AttributeError: 'module' object has no attribute 'rand' #4

Sakorah opened this issue Nov 2, 2017 · 1 comment

Comments

@Sakorah
Copy link

Sakorah commented Nov 2, 2017

Hi,

I run into some troubles with the plugin. Seems that pyOpenSSL changed some things...

See here: certbot/certbot#5111

Here are the errors I get:

2017-11-02 15:07:01,083:DEBUG:certbot.error_handler:Encountered exception:
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/certbot-0.19.0-py2.7.egg/certbot/client.py", line 452, in deploy_certificate
    fullchain_path=fullchain_path)
  File "build/bdist.linux-x86_64/egg/certbot_asa/configurator.py", line 280, in deploy_cert
    passphrase = base64.encodestring(OpenSSL.rand.bytes(12)).rstrip()
AttributeError: 'module' object has no attribute 'rand'

2017-11-02 15:07:01,083:DEBUG:certbot.error_handler:Calling registered functions
2017-11-02 15:07:01,084:DEBUG:certbot.reporter:Reporting to user: Unable to install the certificate
2017-11-02 15:07:01,084:DEBUG:certbot.log:Exiting abnormally:
Traceback (most recent call last):
  File "/usr/bin/certbot", line 11, in <module>
    load_entry_point('certbot==0.19.0', 'console_scripts', 'certbot')()
  File "/usr/local/lib/python2.7/dist-packages/certbot-0.19.0-py2.7.egg/certbot/main.py", line 861, in main
    return config.func(config, plugins)
  File "/usr/local/lib/python2.7/dist-packages/certbot-0.19.0-py2.7.egg/certbot/main.py", line 705, in run
    _install_cert(config, le_client, domains, new_lineage)
  File "/usr/local/lib/python2.7/dist-packages/certbot-0.19.0-py2.7.egg/certbot/main.py", line 565, in _install_cert
    path_provider.cert_path, path_provider.chain_path, path_provider.fullchain_path)
  File "/usr/local/lib/python2.7/dist-packages/certbot-0.19.0-py2.7.egg/certbot/client.py", line 452, in deploy_certificate
    fullchain_path=fullchain_path)
  File "build/bdist.linux-x86_64/egg/certbot_asa/configurator.py", line 280, in deploy_cert
    passphrase = base64.encodestring(OpenSSL.rand.bytes(12)).rstrip()
AttributeError: 'module' object has no attribute 'rand'
@rsaeks
Copy link

rsaeks commented Nov 6, 2017

Seeing the same issue as well with a fresh install.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants