letsencrypt ssl安装快捷方式

时间:2017-08-07 16:26:55

标签: ubuntu ssl lets-encrypt

我目前正在服务器上使用letsencrypt进行SSL证书。随着我服务器上的站点数量不断增加,安装运行ssh命令的证书变得非常耗时:letsencrypt mydomain.com。我必须手动取消选中我不想安装SSL的所有域。

我的问题:是否存在某种快捷方式,例如运行以下命令: ------------------------- ANTICONF ERROR --------------------------- Configuration failed because libcurl was not found. Try installing: * deb: libcurl4-openssl-dev (Debian, Ubuntu, etc) * rpm: libcurl-devel (Fedora, CentOS, RHEL) * csw: libcurl_dev (Solaris) If libcurl is already installed, check that 'pkg-config' is in your PATH and PKG_CONFIG_PATH contains a libcurl.pc file. If pkg- config is unavailable you can set INCLUDE_DIR and LIB_DIR manually via: R CMD INSTALL --configure-vars='INCLUDE_DIR=... LIB_DIR=...' -------------------------------------------------------------------- ERROR: configuration failed for package 'curl' * removing '/usr/local/lib/R/site-library/curl' * installing *source* package 'openssl' ... ** package 'openssl' successfully unpacked and MD5 sums checked Found pkg-config cflags and libs! Using PKG_CFLAGS= Using PKG_LIBS=-lssl -lcrypto ------------------------- ANTICONF ERROR --------------------------- Configuration failed because openssl was not found. Try installing: * deb: libssl-dev (Debian, Ubuntu, etc) * rpm: openssl-devel (Fedora, CentOS, RHEL) * csw: libssl_dev (Solaris) * brew: openssl@1.1 (Mac OSX) If openssl is already installed, check that 'pkg-config' is in your PATH and PKG_CONFIG_PATH contains a openssl.pc file. If pkg- config is unavailable you can set INCLUDE_DIR and LIB_DIR manually via: R CMD INSTALL --configure-vars='INCLUDE_DIR=... LIB_DIR=...' -------------------------------------------------------------------- 为指定域安装证书?我似乎无法在文档中找到任何内容。

非常感谢任何帮助。

2 个答案:

答案 0 :(得分:0)

帮助说:

letsencrypt  --help
letsencrypt  [SUBCOMMAND] [options] [-d domain] [-d domain] ...

所以你应该能够用letsencrypt -d mydomain.com

做你想做的事

答案 1 :(得分:0)

如果您有certboot,则可以轻松运行以下命令:

sudo certbot --nginx -d example.com -d www.example.com

或apache

 sudo certbot --apache -d example.com -d www.example.com

查看digitalocean tutorial