LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-15-2017, 12:28 PM   #1
kikinovak
MLED Founder
 
Registered: Jun 2011
Location: Montpezat (South France)
Distribution: CentOS, OpenSUSE
Posts: 3,453

Rep: Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154
Mysterious warning with letsencrypt


Hi,

I've been using letsencrypt for about a year, since it became a public beta. Everything worked perfectly, until I decided to upgrade LetsEncrypt and a bunch of Python dependencies on my server.

Now LetsEncrypt still works, but certbot spews out warnings that look like this:

Code:
WARNING: The standalone specific supported challenges flag is deprecated.
Please use the --preferred-challenges flag instead.
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Renewing an existing certificate
Performing the following challenges:
tls-sni-01 challenge for mail.xxxxxxxxxx.fr
/usr/lib64/python2.7/site-packages/OpenSSL/rand.py:58: UserWarning: implicit 
cast from 'char *' to a different pointer type: will be forbidden in the future 
(check that the types are as you expect; use an explicit ffi.cast() if they 
are correct)
  result_code = _lib.RAND_bytes(result_buffer, num_bytes)
Waiting for verification...
Cleaning up challenges
Generating key (2048 bits): /etc/letsencrypt/keys/0026_key-certbot.pem
Creating CSR: /etc/letsencrypt/csr/0026_csr-certbot.pem
Any idea what's going on here?

By the way, here's a template for the scripts I'm using to create and/or renew my certificates:

http://www.microlinux.fr/microlinux/...example.com.sh

Last edited by kikinovak; 01-15-2017 at 12:30 PM.
 
Old 01-15-2017, 12:39 PM   #2
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,661

Rep: Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784
See my commit here: https://slackbuilds.org/cgit/slackbu...31abbbb8322b2c
 
1 members found this post helpful.
Old 01-15-2017, 01:02 PM   #3
kikinovak
MLED Founder
 
Registered: Jun 2011
Location: Montpezat (South France)
Distribution: CentOS, OpenSUSE
Posts: 3,453

Original Poster
Rep: Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154
Quote:
Originally Posted by willysr View Post
Thanks, Willy! I'll look into this tomorrow with a fresh mind and report the results.
 
Old 01-15-2017, 05:26 PM   #4
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,661

Rep: Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784
Code:
/usr/lib64/python2.7/site-packages/OpenSSL/rand.py:58: UserWarning: implicit 
cast from 'char *' to a different pointer type: will be forbidden in the future 
(check that the types are as you expect; use an explicit ffi.cast() if they 
are correct)
  result_code = _lib.RAND_bytes(result_buffer, num_bytes)
this warning however will still be there
it's the code syntax problem
 
Old 02-03-2017, 02:20 AM   #5
kikinovak
MLED Founder
 
Registered: Jun 2011
Location: Montpezat (South France)
Distribution: CentOS, OpenSUSE
Posts: 3,453

Original Poster
Rep: Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154
Quote:
Originally Posted by willysr View Post
Code:
/usr/lib64/python2.7/site-packages/OpenSSL/rand.py:58: UserWarning: implicit 
cast from 'char *' to a different pointer type: will be forbidden in the future 
(check that the types are as you expect; use an explicit ffi.cast() if they 
are correct)
  result_code = _lib.RAND_bytes(result_buffer, num_bytes)
this warning however will still be there
it's the code syntax problem
OK, I finally managed to solve the problem, after quite a lot of trial and error. PyOpenSSL was the culprit, and an upgrade from 16.1.0 to 16.2.0 did the trick. By the way, SBo still sports 16.1.0, so I suggest you upgrade it.

Certbot/LetsEncrypt now works perfectly. Thanks, Willy!
 
Old 02-03-2017, 05:54 AM   #6
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,661

Rep: Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784
Thanks, will do.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
I need some helpt with LetsEncrypt and Owncloud red king Linux - Software 1 08-30-2016 10:47 AM
[SOLVED] free certs...thoughts on LetsEncrypt? sneakyimp Linux - Security 15 04-27-2016 10:42 AM
Testing letsencrypt without a domain? lmcilwain Linux - Security 6 03-03-2016 07:12 PM
LXer: LetsEncrypt now available in Fedora LXer Syndicated Linux News 0 12-14-2015 05:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 02:17 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration