I am trying to auto update keys via cron


#1

Which ends into an

Exception:
Traceback (most recent call last):
  File "/root/.local/share/letsencrypt/local/lib/python2.7/site-packages/pip/basecommand.py", line 211, in main
    status = self.run(options, args)
  File "/root/.local/share/letsencrypt/local/lib/python2.7/site-packages/pip/commands/install.py", line 311, in run
    root=options.root_path,
  File "/root/.local/share/letsencrypt/local/lib/python2.7/site-packages/pip/req/req_set.py", line 640, in install
    requirement.uninstall(auto_confirm=True)
  File "/root/.local/share/letsencrypt/local/lib/python2.7/site-packages/pip/req/req_install.py", line 716, in uninstall
    paths_to_remove.remove(auto_confirm)
  File "/root/.local/share/letsencrypt/local/lib/python2.7/site-packages/pip/req/req_uninstall.py", line 125, in remove
    renames(path, new_path)
  File "/root/.local/share/letsencrypt/local/lib/python2.7/site-packages/pip/utils/__init__.py", line 315, in renames
    shutil.move(old, new)
  File "/usr/lib/python2.7/shutil.py", line 302, in move
    copy2(src, real_dst)
  File "/usr/lib/python2.7/shutil.py", line 130, in copy2
    copyfile(src, dst)
  File "/usr/lib/python2.7/shutil.py", line 82, in copyfile
    with open(src, 'rb') as fsrc:
IOError: [Errno 2] No such file or directory: '/root/.local/share/letsencrypt/lib/python2.7/site-packages/cryptography-1.1.2-py2.7.egg-info'

Which is correct so far, as the directory on the server is named “cryptography-1.2.1-py2.7.egg-info”

any ideas?


#2

you can try my client: [updated]Simplest pure bash letsencrypt client, support standalone server now


#3

Here’s the script I’m using in cron daily to update certs for my various boxes (accompanying blog post):