Linux Tutorial | Matt Cooper - Open Source Support
Linux Tutorial | Matt Cooper - Open Source Support
letsencrypt

ImportError: No module named cryptography.hazmat.bindings.openssl.binding

Run the following to fix:

cd /opt/eff.org/certbot/venv/local/bin
sudo ./pip install cryptography
sudo ./pip install zope.interface

Cryptography and zope interface are updated.

May 4, 2018by Matt Cooper
FacebookTwitterPinterestGoogle +Stumbleupon
Amazon AWS, Amazon Linux, letsencrypt

ImportError: No module named interface from zope.interface

The following fixed the issue on AWS EC2:

unset PYTHON_INSTALL_LAYOUT

/root/.local/share/letsencrypt/bin/pip install --upgrade certbot
April 11, 2018by Matt Cooper
FacebookTwitterPinterestGoogle +Stumbleupon
Amazon AWS, letsencrypt

letsencrypt – ImportError: No module named interface

To fix:

sudo rm -rf /opt/eff.org/

Then run e.g. renew:

sudo /opt/letsencrypt/certbot-auto renew --debug
January 10, 2018by Matt Cooper
FacebookTwitterPinterestGoogle +Stumbleupon
Amazon Linux, letsencrypt

Install certbot-auto Amazon Linux

1. Download latest version:

curl -O https://dl.eff.org/certbot-auto

2. Mod script:

chmod +x certbot-auto 

3. Move location:

mv certbot-auto /usr/local/bin/certbot-auto

4. Generate SSL

/usr/local/bin/certbot-auto certonly --standalone -d example.com

5. New certificates will be generated and saved here:

/etc/letsencrypt/live/

November 15, 2017by Matt Cooper
FacebookTwitterPinterestGoogle +Stumbleupon
Amazon AWS, EC2, letsencrypt

Install letsencrypt on Amazon Linux

1. Install mod_ssl and python

yum -y install mod_ssl python26-virtualenv

2. Change into /opt and clone letsencypt

cd /opt

git clone https://github.com/certbot/certbot letsencrypt

3. Run letsencrypt

/opt/letsencrypt/letsencrypt-auto --debug

Select relevant options when prompted.

4. Setup auto-renew

Auto-renew certificates every Sunday at 6pm:

crontab -e
# Renew Let's Encrypt certificates at 6pm every Sunday
0 18 * * 0 root (/opt/letsencrypt/certbot-auto renew && service httpd restart)
May 22, 2017by Matt Cooper
FacebookTwitterPinterestGoogle +Stumbleupon

About me

Hi, I'm Matt Cooper. I started this blog to pretty much act as a brain dump area for things I learn from day to day. You can contact me at: matt@linuxtutorial.co.uk

Recent Comments

  • Andrew on Export list of Amazon EC2 Instances to CSV
  • Matt Cooper on Proxmox – add a second hard drive to node for Backups
  • karis on Proxmox – add a second hard drive to node for Backups
  • Matt Cooper on Remote MySQL Database – Slow Connection
  • Matt Cooper on Bash script to send public IP address to Email

Categories

  • AdvancedTomato
  • Amazon AWS
  • Amazon Linux
  • Amazon S3
  • Apache
  • Apache Kafka
  • Backup Tutorial
  • Bash Scripting
  • Centos Tutorial
  • CloudFlare
  • Command line Tutorial
  • CPanel Troubleshooting
  • CPanel Tutorial
  • Debian Troubleshooting
  • Debian Tutorial
  • DKIM
  • Docker
  • EC2
  • ESXi
  • Faildows
  • Google Adwords
  • Google Analytics
  • Google Chromebook
  • Google Mail
  • graylog
  • IAM
  • imapsync
  • iRedmail Tutorial
  • ISPConfig3 Tutorial
  • Java
  • ldap
  • letsencrypt
  • MyDNS
  • MySQL Troubleshooting
  • MySQL Tutorial
  • Nest Install
  • Netbeans
  • Nginx
  • Nginx Troubleshooting
  • openssl
  • PCI Compliance
  • Percona
  • PHP
  • Plex Media Server Tutorial
  • Postfix
  • Proxmox Tutorial
  • Pure FTPd
  • Resourcespace Tutorial
  • Route 53
  • Rsync Tutorial
  • Security
  • Smoothwall Troubleshooting
  • Smoothwall Tutorial
  • SSH
  • tcpdump
  • Thunderbird
  • Tomcat Troubleshooting
  • Ubuntu Tutorial
  • Uncategorized
  • Unison
  • vmware
  • vzdump
  • WHM
  • Wireshark
  • Wordpress Troubleshooting
  • WordPress Tutorial

“See, you not only have to be a good coder to create a system like Linux, you have to be a sneaky bastard too." Linus Torvalds

© 2017 copyright www.linuxtutorial.co.uk // All rights reserved