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
AttibuteError: 'module' object has no attribute 'rand' has occured at acme/acme/crypto_util.py with >=pyOpenSSL-17.2.0 #5111
Comments
I have the same issue, thank you for your report 👍 |
likewise |
@bmw wanna review the associated PR? |
certbot produces an error [1] when used with versions of pyOpenSSL > 17.2.0, who's port was recently updated [2] to 17.3.0. This version update contains a fix for that issue. While I'm here, improve pkg-message usage invocation example and provide a link to documentation [1] certbot/certbot#5111 [2] http://svnweb.freebsd.org/changeset/ports/450350 Reported by: Daniel Boothby (via private email) Approved by: cpm (py-acme maintainer) git-svn-id: svn+ssh://svn.freebsd.org/ports/head@450577 35697150-7ecd-e111-bb59-0022644237b5
certbot produces an error [1] when used with versions of pyOpenSSL > 17.2.0, who's port was recently updated [2] to 17.3.0. This version update contains a fix for that issue. While I'm here, improve pkg-message usage invocation example and provide a link to documentation [1] certbot/certbot#5111 [2] http://svnweb.freebsd.org/changeset/ports/450350 Reported by: Daniel Boothby (via private email) Approved by: cpm (py-acme maintainer)
This is a quickfix : Crypto_utils.py, line 246 (check your error log for details)
|
Reference to issue: certbot/certbot#5111 Replacing OpenSSL.rand.bytes with os.urandom
Still exists in python-certbot-nginx installed via apt |
@yhvicey on what OS? Can you give us an output of all of the associated package/library versions? |
@SwartzCr In my case anyway it's in Ubuntu 16.04, 0.19.0-1+ubuntu16.04.1+certbot+1 |
@wandering213 do you think you could re-install certbot from the ppa to get the 17.10 version and then see if this persists? |
Whoops I misspoke on that server I'm running 16.04 (Corrected in my comment) |
Reinstalling gets me VersionConflict (acme 0.19.0 (/usr/lib/python2.7/dist-packages), Requirement.parse('acme==0.15.0')). manually updating certbo-nginx with pip fixed the problem |
Could you do me a favor and compare the versions of the certbot related packages in the output of |
I think the issue is that you had old packages held in pip that didn't have this issue resolved. While updating certbot in pip has gotten you newer versions of these packages with this issue fixed, we generally don't recommend that people install certbot via pip, since that will have you end up with two versions of all of the python libraries we rely on, one set managed by pip and another managed by your package manager. |
Okay I understand that certbot 0.10.2 is too old and results in this issue, however, there is no backports to jessie available of a version that works correct? So how should I proceed on my RPi 3? |
@FrankWouda Are you getting the same error on your raspberry pi? Or do you just think that you will? |
I was getting the error, however I bypassed it using the virtual environment implementation |
Great! |
Same issue still existing here |
@Sese-Schneider have you tried any of the solutions discussed above? |
@lux-lth Thanks for the tip, that did it for me. In my case, I had to edit the file Otherwise, I noticed that I had indeed package @FrankWouda certbot from jessie-backports should work fine ( |
certbot produces an error [1] when used with versions of pyOpenSSL > 17.2.0, who's port was recently updated [2] to 17.3.0. This version update contains a fix for that issue. While I'm here, improve pkg-message usage invocation example and provide a link to documentation [1] certbot/certbot#5111 [2] http://svnweb.freebsd.org/changeset/ports/450350 Reported by: Daniel Boothby (via private email) Approved by: cpm (py-acme maintainer)
My operating system is (include version):
CentOS 6.9
I installed Certbot with (certbot-auto, OS package manager, pip, etc):
pip
I ran this command and it produced this output:
Certbot's behavior differed from what I expected because:
There should not be any message related on error.
Here is a Certbot log showing the issue (if available):
Here is the relevant nginx server block or Apache virtualhost for the domain I am configuring:
The text was updated successfully, but these errors were encountered: