# provider definitions provider lev1 \ directory https://acme-v01.api.letsencrypt.org/directory provider les \ directory https://acme-staging.api.letsencrypt.org/directory # account definitions account another@example.com \ key /etc/another.key \ provider les # domain definitions domain www.example.com \ altnames { example.com, www2.example.com } \ key "/etc/ssl/private/www_example_com.key" \ cert "/etc/ssl/cert/www_example_com.pem" \ webroot "/var/www/htdocs" \ account another@example.com \ gracetime 1 week \ hook nginx # domains with prefix www imply altname without www domain www.example.net \ key "/etc/ssl/private/www_example_net.key" \ cert "/etc/ssl/cert/www_example_net.pem" \ account another@example.com domain mail.example.com \ key "/etc/ssl/private/mail_example_com.key" \ cert "/etc/ssl/cert/mail_example_com.pem" \ account another@example.com \ gracetime 1 week \ hook dovecot # hook definitions hook nginx \ cmd "sudo service nginx reload" hook dovecot \ cmd "sudo service dovecot reload"