Letsencrypt: error: unrecognized arguments: --staple-ocsp --must-staple

Domain name: suporte-app.tk

Command line: letsencrypt --apache --email suporte@suporte-app.tk --agree-tos --hsts --uir --staple-ocsp --must-staple --no-redirect -d suporte-app.tk

Output: letsencrypt: error: unrecognized arguments: --staple-ocsp --must-staple

OS: Ubuntu Server 16.04.2 LTS (Xenial), running on Linode
letsencrypt installed by: apt-get install python-letsencrypt-apache
Current version: 0.4.1-1

Any ideas of what can I do for this to work?
I wanna generate certificates with those two options, but the letsencrypt client keeps getting this error

hi @suportenewm

i believe those are certbot commands not letsencrypt commands

so you need to run certbot --apache --email suporte@suporte-app.tk --agree-tos --hsts --uir --staple-ocsp --must-staple --no-redirect -d suporte-app.tk

from what i understand on older versions of linux letsencrypt is installed

Looks like OCSP stapling was implemented in version 0.7.0 about a month after Ubuntu 16.04 was released.

If you want to install a newer version of Certbot, for now i’d suggest following the instructions to install certbot-auto for Ubuntu 14.04. (They’ll work fine on 16.04 too.)

(People are working on a PPA for current versions of Certbot, but i don’t think it’s ready for production use yet.)

2 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.