搜索
热搜: 活动 交友 discuz
Hi~登录注册
查看: 1970|回复: 0
打印 上一主题 下一主题

FB小游戏开发准备二 (Centos 使用Let’s Encrypt申请免费SSL证书)

[复制链接]

6

主题

10

帖子

149

积分

注册会员

Rank: 2

积分
149
跳转到指定楼层
楼主
发表于 2018-9-25 18:14:37 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
本帖最后由 破晓 于 2018-9-25 18:16 编辑

Let’s Encrypt作为一个公共且免费SSL的项目逐渐被广大用户传播和使用,是由Mozilla、Cisco、Akamai、IdenTrust、EFF等组织人员发起,主要的目的也是为了推进网站从HTTP向HTTPS过度的进程,目前已经有越来越多的商家加入和赞助支持。
Let’s Encrypt免费SSL证书的出现,也会对传统提供付费SSL证书服务的商家有不小的打击。到目前为止,Let’s Encrypt获得IdenTrust交叉签名,这就是说可以应用且支持包括FireFox、Chrome在内的主流浏览器的兼容和支持,虽然目前是公测阶段,但是也有不少的用户在自有网站项目中正式使用起来。
虽然目前Let’s Encrypt免费SSL证书默认是90天有效期,但是我们也可以到期自动续约,不影响我们的尝试和使用,为了考虑到文章的真实性和以后的实战性,老左准备利用一些时间分篇幅的展现在应用Let’s Encrypt证书的过程,这篇文章分享申请的方法教程。
安装准备
根据官方的要求,我们在VPS、服务器上部署Let’s Encrypt免费SSL证书之前,需要系统支持Python2.7以上版本以及支持GIT工具。这个需要根据我们不同的系统版本进行安装和升级。
首先安装Git
  1. yum -y install git-core
复制代码

安装过程如下:
  1. Dependencies Resolved

  2. ============================================================================================================================================================================================================================================
  3. Package                                                       Arch                                                Version                                                       Repository                                            Size
  4. ============================================================================================================================================================================================================================================
  5. Installing:
  6. git                                                           x86_64                                              1.8.3.1-14.el7_5                                              updates                                              4.4 M
  7. Installing for dependencies:
  8. libgnome-keyring                                              x86_64                                              3.12.0-1.el7                                                  base                                                 109 k
  9. perl-Error                                                    noarch                                              1:0.17020-2.el7                                               base                                                  32 k
  10. perl-Git                                                      noarch                                              1.8.3.1-14.el7_5                                              updates                                               54 k
  11. perl-TermReadKey                                              x86_64                                              2.30-20.el7                                                   base                                                  31 k
  12. rsync                                                         x86_64                                              3.1.2-4.el7                                                   base                                                 403 k

  13. Transaction Summary
  14. ============================================================================================================================================================================================================================================
  15. Install  1 Package (+5 Dependent packages)

  16. Total download size: 5.0 M
  17. Installed size: 23 M
  18. Is this ok [y/d/N]: y
  19. Downloading packages:
  20. (1/6): perl-Git-1.8.3.1-14.el7_5.noarch.rpm                                                                                                                                                                          |  54 kB  00:00:00     
  21. (2/6): libgnome-keyring-3.12.0-1.el7.x86_64.rpm                                                                                                                                                                      | 109 kB  00:00:00     
  22. (3/6): perl-Error-0.17020-2.el7.noarch.rpm                                                                                                                                                                           |  32 kB  00:00:00     
  23. (4/6): git-1.8.3.1-14.el7_5.x86_64.rpm                                                                                                                                                                               | 4.4 MB  00:00:00     
  24. (5/6): perl-TermReadKey-2.30-20.el7.x86_64.rpm                                                                                                                                                                       |  31 kB  00:00:00     
  25. (6/6): rsync-3.1.2-4.el7.x86_64.rpm                                                                                                                                                                                  | 403 kB  00:00:00     
  26. --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  27. Total                                                                                                                                                                                                        17 MB/s | 5.0 MB  00:00:00     
  28. Running transaction check
  29. Running transaction test
  30. Transaction test succeeded
  31. Running transaction
  32.   Installing : 1:perl-Error-0.17020-2.el7.noarch                                                                                                                                                                                        1/6
  33.   Installing : rsync-3.1.2-4.el7.x86_64                                                                                                                                                                                                 2/6
  34.   Installing : perl-TermReadKey-2.30-20.el7.x86_64                                                                                                                                                                                      3/6
  35.   Installing : libgnome-keyring-3.12.0-1.el7.x86_64                                                                                                                                                                                     4/6
  36.   Installing : perl-Git-1.8.3.1-14.el7_5.noarch                                                                                                                                                                                         5/6
  37.   Installing : git-1.8.3.1-14.el7_5.x86_64                                                                                                                                                                                              6/6
  38.   Verifying  : git-1.8.3.1-14.el7_5.x86_64                                                                                                                                                                                              1/6
  39.   Verifying  : libgnome-keyring-3.12.0-1.el7.x86_64                                                                                                                                                                                     2/6
  40.   Verifying  : perl-TermReadKey-2.30-20.el7.x86_64                                                                                                                                                                                      3/6
  41.   Verifying  : 1:perl-Error-0.17020-2.el7.noarch                                                                                                                                                                                        4/6
  42.   Verifying  : rsync-3.1.2-4.el7.x86_64                                                                                                                                                                                                 5/6
  43.   Verifying  : perl-Git-1.8.3.1-14.el7_5.noarch                                                                                                                                                                                         6/6

  44. Installed:
  45.   git.x86_64 0:1.8.3.1-14.el7_5                                                                                                                                                                                                            

  46. Dependency Installed:
  47.   libgnome-keyring.x86_64 0:3.12.0-1.el7             perl-Error.noarch 1:0.17020-2.el7             perl-Git.noarch 0:1.8.3.1-14.el7_5             perl-TermReadKey.x86_64 0:2.30-20.el7             rsync.x86_64 0:3.1.2-4.el7            

  48. Complete!
复制代码
快速获取Let’s Encrypt免费SSL证书
  1. cd /
  2. git clone https://github.com/letsencrypt/letsencrypt
  3. cd letsencrypt
  4. ./letsencrypt-auto certonly --standalone --email admin@code2048.net -d code2048.net -d www.code2048.net
复制代码
注意事项:
1.把需要支持的所有域名  都写上   -d 后面跟域名,有几个写几个
然后执行上面的脚本,我们需要根据自己的实际站点情况将域名更换成自己需要部署的。
2.填的邮箱最好是国外邮箱或QQ邮箱,要不然发邮件收不到(下面过程中会发一个邮箱激活邮件)
3.执行的时候要把域名解析到这个服务器,要不然检测不到
4.执行的时候如果80和443端口被占用,就先暂时关闭占用端口的应用
执行过程如下:
  1. [root@poxiao ~]# git clone https://github.com/letsencrypt/letsencrypt
  2. Cloning into 'letsencrypt'...
  3. remote: Counting objects: 58233, done.
  4. remote: Compressing objects: 100% (52/52), done.
  5. remote: Total 58233 (delta 22), reused 15 (delta 6), pack-reused 58175
  6. Receiving objects: 100% (58233/58233), 18.86 MiB | 25.54 MiB/s, done.
  7. Resolving deltas: 100% (42101/42101), done.
  8. [root@poxiao ~]# ls
  9. letsencrypt
  10. [root@poxiao ~]# cd letsencrypt
  11. [root@poxiao letsencrypt]# ./letsencrypt-auto certonly --standalone --email admin@code2048.net -d code2048.net -d www.code2048.net
  12. Bootstrapping dependencies for RedHat-based OSes... (you can skip this with --no-bootstrap)
  13. yum is /usr/bin/yum
  14. yum is hashed (/usr/bin/yum)
  15. Loaded plugins: fastestmirror
  16. Loading mirror speeds from cached hostfile
  17. Resolving Dependencies
  18. --> Running transaction check
  19. ---> Package augeas-libs.x86_64 0:1.4.0-5.el7_5.1 will be installed
  20. ---> Package ca-certificates.noarch 0:2017.2.14-71.el7 will be updated
  21. ---> Package ca-certificates.noarch 0:2018.2.22-70.0.el7_5 will be an update
  22. ---> Package gcc.x86_64 0:4.8.5-16.el7 will be updated
  23. ---> Package gcc.x86_64 0:4.8.5-28.el7_5.1 will be an update
  24. --> Processing Dependency: libgomp = 4.8.5-28.el7_5.1 for package: gcc-4.8.5-28.el7_5.1.x86_64
  25. --> Processing Dependency: cpp = 4.8.5-28.el7_5.1 for package: gcc-4.8.5-28.el7_5.1.x86_64
  26. --> Processing Dependency: libgcc >= 4.8.5-28.el7_5.1 for package: gcc-4.8.5-28.el7_5.1.x86_64
  27. ---> Package libffi-devel.x86_64 0:3.0.13-18.el7 will be installed
  28. ---> Package openssl.x86_64 1:1.0.2k-8.el7 will be updated
  29. ---> Package openssl.x86_64 1:1.0.2k-12.el7 will be an update
  30. --> Processing Dependency: openssl-libs(x86-64) = 1:1.0.2k-12.el7 for package: 1:openssl-1.0.2k-12.el7.x86_64
  31. ---> Package openssl-devel.x86_64 1:1.0.2k-12.el7 will be installed
  32. --> Processing Dependency: zlib-devel(x86-64) for package: 1:openssl-devel-1.0.2k-12.el7.x86_64
  33. --> Processing Dependency: krb5-devel(x86-64) for package: 1:openssl-devel-1.0.2k-12.el7.x86_64
  34. ---> Package python-devel.x86_64 0:2.7.5-68.el7 will be installed
  35. --> Processing Dependency: python(x86-64) = 2.7.5-68.el7 for package: python-devel-2.7.5-68.el7.x86_64
  36. ---> Package python-tools.x86_64 0:2.7.5-68.el7 will be installed
  37. --> Processing Dependency: tkinter = 2.7.5-68.el7 for package: python-tools-2.7.5-68.el7.x86_64
  38. ---> Package python-virtualenv.noarch 0:15.1.0-2.el7 will be installed
  39. ---> Package python2-pip.noarch 0:8.1.2-5.el7 will be updated
  40. ---> Package python2-pip.noarch 0:8.1.2-6.el7 will be an update
  41. ---> Package redhat-rpm-config.noarch 0:9.1.0-80.el7.centos will be installed
  42. --> Processing Dependency: dwz >= 0.4 for package: redhat-rpm-config-9.1.0-80.el7.centos.noarch
  43. --> Processing Dependency: zip for package: redhat-rpm-config-9.1.0-80.el7.centos.noarch
  44. --> Processing Dependency: perl-srpm-macros for package: redhat-rpm-config-9.1.0-80.el7.centos.noarch
  45. --> Running transaction check
  46. ---> Package cpp.x86_64 0:4.8.5-16.el7 will be updated
  47. ---> Package cpp.x86_64 0:4.8.5-28.el7_5.1 will be an update
  48. ---> Package dwz.x86_64 0:0.11-3.el7 will be installed
  49. ---> Package krb5-devel.x86_64 0:1.15.1-19.el7 will be installed
  50. --> Processing Dependency: libkadm5(x86-64) = 1.15.1-19.el7 for package: krb5-devel-1.15.1-19.el7.x86_64
  51. --> Processing Dependency: krb5-libs(x86-64) = 1.15.1-19.el7 for package: krb5-devel-1.15.1-19.el7.x86_64
  52. --> Processing Dependency: libverto-devel for package: krb5-devel-1.15.1-19.el7.x86_64
  53. --> Processing Dependency: libselinux-devel for package: krb5-devel-1.15.1-19.el7.x86_64
  54. --> Processing Dependency: libcom_err-devel for package: krb5-devel-1.15.1-19.el7.x86_64
  55. --> Processing Dependency: keyutils-libs-devel for package: krb5-devel-1.15.1-19.el7.x86_64
  56. ---> Package libgcc.x86_64 0:4.8.5-16.el7 will be updated
  57. ---> Package libgcc.x86_64 0:4.8.5-28.el7_5.1 will be an update
  58. ---> Package libgomp.x86_64 0:4.8.5-16.el7 will be updated
  59. ---> Package libgomp.x86_64 0:4.8.5-28.el7_5.1 will be an update
  60. ---> Package openssl-libs.x86_64 1:1.0.2k-8.el7 will be updated
  61. ---> Package openssl-libs.x86_64 1:1.0.2k-12.el7 will be an update
  62. ---> Package perl-srpm-macros.noarch 0:1-8.el7 will be installed
  63. ---> Package python.x86_64 0:2.7.5-58.el7 will be updated
  64. ---> Package python.x86_64 0:2.7.5-68.el7 will be an update
  65. --> Processing Dependency: python-libs(x86-64) = 2.7.5-68.el7 for package: python-2.7.5-68.el7.x86_64
  66. ---> Package tkinter.x86_64 0:2.7.5-68.el7 will be installed
  67. --> Processing Dependency: libtk8.5.so()(64bit) for package: tkinter-2.7.5-68.el7.x86_64
  68. --> Processing Dependency: libtcl8.5.so()(64bit) for package: tkinter-2.7.5-68.el7.x86_64
  69. --> Processing Dependency: libX11.so.6()(64bit) for package: tkinter-2.7.5-68.el7.x86_64
  70. --> Processing Dependency: libTix.so()(64bit) for package: tkinter-2.7.5-68.el7.x86_64
  71. ---> Package zip.x86_64 0:3.0-11.el7 will be installed
  72. ---> Package zlib-devel.x86_64 0:1.2.7-17.el7 will be installed
  73. --> Running transaction check
  74. ---> Package keyutils-libs-devel.x86_64 0:1.5.8-3.el7 will be installed
  75. ---> Package krb5-libs.x86_64 0:1.15.1-8.el7 will be updated
  76. ---> Package krb5-libs.x86_64 0:1.15.1-19.el7 will be an update
  77. ---> Package libX11.x86_64 0:1.6.5-1.el7 will be installed
  78. --> Processing Dependency: libX11-common >= 1.6.5-1.el7 for package: libX11-1.6.5-1.el7.x86_64
  79. --> Processing Dependency: libxcb.so.1()(64bit) for package: libX11-1.6.5-1.el7.x86_64
  80. ---> Package libcom_err-devel.x86_64 0:1.42.9-12.el7_5 will be installed
  81. --> Processing Dependency: libcom_err(x86-64) = 1.42.9-12.el7_5 for package: libcom_err-devel-1.42.9-12.el7_5.x86_64
  82. ---> Package libkadm5.x86_64 0:1.15.1-19.el7 will be installed
  83. ---> Package libselinux-devel.x86_64 0:2.5-12.el7 will be installed
  84. --> Processing Dependency: libselinux(x86-64) = 2.5-12.el7 for package: libselinux-devel-2.5-12.el7.x86_64
  85. --> Processing Dependency: libsepol-devel(x86-64) >= 2.5-6 for package: libselinux-devel-2.5-12.el7.x86_64
  86. --> Processing Dependency: pkgconfig(libsepol) for package: libselinux-devel-2.5-12.el7.x86_64
  87. --> Processing Dependency: pkgconfig(libpcre) for package: libselinux-devel-2.5-12.el7.x86_64
  88. ---> Package libverto-devel.x86_64 0:0.2.5-4.el7 will be installed
  89. ---> Package python-libs.x86_64 0:2.7.5-58.el7 will be updated
  90. ---> Package python-libs.x86_64 0:2.7.5-68.el7 will be an update
  91. ---> Package tcl.x86_64 1:8.5.13-8.el7 will be installed
  92. ---> Package tix.x86_64 1:8.4.3-12.el7 will be installed
  93. ---> Package tk.x86_64 1:8.5.13-6.el7 will be installed
  94. --> Processing Dependency: libXft.so.2()(64bit) for package: 1:tk-8.5.13-6.el7.x86_64
  95. --> Running transaction check
  96. ---> Package libX11-common.noarch 0:1.6.5-1.el7 will be installed
  97. ---> Package libXft.x86_64 0:2.3.2-2.el7 will be installed
  98. --> Processing Dependency: fontconfig >= 2.2-1 for package: libXft-2.3.2-2.el7.x86_64
  99. --> Processing Dependency: libfontconfig.so.1()(64bit) for package: libXft-2.3.2-2.el7.x86_64
  100. --> Processing Dependency: libXrender.so.1()(64bit) for package: libXft-2.3.2-2.el7.x86_64
  101. ---> Package libcom_err.x86_64 0:1.42.9-10.el7 will be updated
  102. --> Processing Dependency: libcom_err(x86-64) = 1.42.9-10.el7 for package: e2fsprogs-1.42.9-10.el7.x86_64
  103. --> Processing Dependency: libcom_err(x86-64) = 1.42.9-10.el7 for package: libss-1.42.9-10.el7.x86_64
  104. --> Processing Dependency: libcom_err(x86-64) = 1.42.9-10.el7 for package: e2fsprogs-libs-1.42.9-10.el7.x86_64
  105. ---> Package libcom_err.x86_64 0:1.42.9-12.el7_5 will be an update
  106. ---> Package libselinux.x86_64 0:2.5-11.el7 will be updated
  107. --> Processing Dependency: libselinux(x86-64) = 2.5-11.el7 for package: libselinux-utils-2.5-11.el7.x86_64
  108. --> Processing Dependency: libselinux(x86-64) = 2.5-11.el7 for package: libselinux-python-2.5-11.el7.x86_64
  109. ---> Package libselinux.x86_64 0:2.5-12.el7 will be an update
  110. ---> Package libsepol-devel.x86_64 0:2.5-8.1.el7 will be installed
  111. --> Processing Dependency: libsepol(x86-64) = 2.5-8.1.el7 for package: libsepol-devel-2.5-8.1.el7.x86_64
  112. ---> Package libxcb.x86_64 0:1.12-1.el7 will be installed
  113. --> Processing Dependency: libXau.so.6()(64bit) for package: libxcb-1.12-1.el7.x86_64
  114. ---> Package pcre-devel.x86_64 0:8.32-17.el7 will be installed
  115. --> Running transaction check
  116. ---> Package e2fsprogs.x86_64 0:1.42.9-10.el7 will be updated
  117. ---> Package e2fsprogs.x86_64 0:1.42.9-12.el7_5 will be an update
  118. ---> Package e2fsprogs-libs.x86_64 0:1.42.9-10.el7 will be updated
  119. ---> Package e2fsprogs-libs.x86_64 0:1.42.9-12.el7_5 will be an update
  120. ---> Package fontconfig.x86_64 0:2.10.95-11.el7 will be installed
  121. --> Processing Dependency: fontpackages-filesystem for package: fontconfig-2.10.95-11.el7.x86_64
  122. --> Processing Dependency: font(:lang=en) for package: fontconfig-2.10.95-11.el7.x86_64
  123. ---> Package libXau.x86_64 0:1.0.8-2.1.el7 will be installed
  124. ---> Package libXrender.x86_64 0:0.9.10-1.el7 will be installed
  125. ---> Package libselinux-python.x86_64 0:2.5-11.el7 will be updated
  126. ---> Package libselinux-python.x86_64 0:2.5-12.el7 will be an update
  127. ---> Package libselinux-utils.x86_64 0:2.5-11.el7 will be updated
  128. ---> Package libselinux-utils.x86_64 0:2.5-12.el7 will be an update
  129. ---> Package libsepol.x86_64 0:2.5-6.el7 will be updated
  130. ---> Package libsepol.x86_64 0:2.5-8.1.el7 will be an update
  131. ---> Package libss.x86_64 0:1.42.9-10.el7 will be updated
  132. ---> Package libss.x86_64 0:1.42.9-12.el7_5 will be an update
  133. --> Running transaction check
  134. ---> Package fontpackages-filesystem.noarch 0:1.44-8.el7 will be installed
  135. ---> Package lyx-fonts.noarch 0:2.2.3-1.el7 will be installed
  136. --> Finished Dependency Resolution

  137. Dependencies Resolved

  138. ============================================================================================================================================================================================================================================
  139. Package                                                           Arch                                             Version                                                         Repository                                         Size
  140. ============================================================================================================================================================================================================================================
  141. Installing:
  142. augeas-libs                                                       x86_64                                           1.4.0-5.el7_5.1                                                 updates                                           355 k
  143. libffi-devel                                                      x86_64                                           3.0.13-18.el7                                                   base                                               23 k
  144. openssl-devel                                                     x86_64                                           1:1.0.2k-12.el7                                                 base                                              1.5 M
  145. python-devel                                                      x86_64                                           2.7.5-68.el7                                                    base                                              397 k
  146. python-tools                                                      x86_64                                           2.7.5-68.el7                                                    base                                              855 k
  147. python-virtualenv                                                 noarch                                           15.1.0-2.el7                                                    base                                              1.7 M
  148. redhat-rpm-config                                                 noarch                                           9.1.0-80.el7.centos                                             base                                               79 k
  149. Updating:
  150. ca-certificates                                                   noarch                                           2018.2.22-70.0.el7_5                                            updates                                           392 k
  151. gcc                                                               x86_64                                           4.8.5-28.el7_5.1                                                updates                                            16 M
  152. openssl                                                           x86_64                                           1:1.0.2k-12.el7                                                 base                                              492 k
  153. python2-pip                                                       noarch                                           8.1.2-6.el7                                                     epel                                              1.7 M
  154. Installing for dependencies:
  155. dwz                                                               x86_64                                           0.11-3.el7                                                      base                                               99 k
  156. fontconfig                                                        x86_64                                           2.10.95-11.el7                                                  base                                              229 k
  157. fontpackages-filesystem                                           noarch                                           1.44-8.el7                                                      base                                              9.9 k
  158. keyutils-libs-devel                                               x86_64                                           1.5.8-3.el7                                                     base                                               37 k
  159. krb5-devel                                                        x86_64                                           1.15.1-19.el7                                                   updates                                           269 k
  160. libX11                                                            x86_64                                           1.6.5-1.el7                                                     base                                              606 k
  161. libX11-common                                                     noarch                                           1.6.5-1.el7                                                     base                                              164 k
  162. libXau                                                            x86_64                                           1.0.8-2.1.el7                                                   base                                               29 k
  163. libXft                                                            x86_64                                           2.3.2-2.el7                                                     base                                               58 k
  164. libXrender                                                        x86_64                                           0.9.10-1.el7                                                    base                                               26 k
  165. libcom_err-devel                                                  x86_64                                           1.42.9-12.el7_5                                                 updates                                            31 k
  166. libkadm5                                                          x86_64                                           1.15.1-19.el7                                                   updates                                           175 k
  167. libselinux-devel                                                  x86_64                                           2.5-12.el7                                                      base                                              186 k
  168. libsepol-devel                                                    x86_64                                           2.5-8.1.el7                                                     base                                               77 k
  169. libverto-devel                                                    x86_64                                           0.2.5-4.el7                                                     base                                               12 k
  170. libxcb                                                            x86_64                                           1.12-1.el7                                                      base                                              211 k
  171. lyx-fonts                                                         noarch                                           2.2.3-1.el7                                                     epel                                              159 k
  172. pcre-devel                                                        x86_64                                           8.32-17.el7                                                     base                                              480 k
  173. perl-srpm-macros                                                  noarch                                           1-8.el7                                                         base                                              4.6 k
  174. tcl                                                               x86_64                                           1:8.5.13-8.el7                                                  base                                              1.9 M
  175. tix                                                               x86_64                                           1:8.4.3-12.el7                                                  base                                              254 k
  176. tk                                                                x86_64                                           1:8.5.13-6.el7                                                  base                                              1.4 M
  177. tkinter                                                           x86_64                                           2.7.5-68.el7                                                    base                                              324 k
  178. zip                                                               x86_64                                           3.0-11.el7                                                      base                                              260 k
  179. zlib-devel                                                        x86_64                                           1.2.7-17.el7                                                    base                                               50 k
  180. Updating for dependencies:
  181. cpp                                                               x86_64                                           4.8.5-28.el7_5.1                                                updates                                           5.9 M
  182. e2fsprogs                                                         x86_64                                           1.42.9-12.el7_5                                                 updates                                           699 k
  183. e2fsprogs-libs                                                    x86_64                                           1.42.9-12.el7_5                                                 updates                                           167 k
  184. krb5-libs                                                         x86_64                                           1.15.1-19.el7                                                   updates                                           747 k
  185. libcom_err                                                        x86_64                                           1.42.9-12.el7_5                                                 updates                                            41 k
  186. libgcc                                                            x86_64                                           4.8.5-28.el7_5.1                                                updates                                           101 k
  187. libgomp                                                           x86_64                                           4.8.5-28.el7_5.1                                                updates                                           156 k
  188. libselinux                                                        x86_64                                           2.5-12.el7                                                      base                                              162 k
  189. libselinux-python                                                 x86_64                                           2.5-12.el7                                                      base                                              235 k
  190. libselinux-utils                                                  x86_64                                           2.5-12.el7                                                      base                                              151 k
  191. libsepol                                                          x86_64                                           2.5-8.1.el7                                                     base                                              297 k
  192. libss                                                             x86_64                                           1.42.9-12.el7_5                                                 updates                                            45 k
  193. openssl-libs                                                      x86_64                                           1:1.0.2k-12.el7                                                 base                                              1.2 M
  194. python                                                            x86_64                                           2.7.5-68.el7                                                    base                                               93 k
  195. python-libs                                                       x86_64                                           2.7.5-68.el7                                                    base                                              5.6 M

  196. Transaction Summary
  197. ============================================================================================================================================================================================================================================
  198. Install  7 Packages (+25 Dependent packages)
  199. Upgrade  4 Packages (+15 Dependent packages)

  200. Total download size: 46 M
  201. Downloading packages:
  202. Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
  203. (1/51): ca-certificates-2018.2.22-70.0.el7_5.noarch.rpm                                                                                                                                                              | 392 kB  00:00:00     
  204. (2/51): augeas-libs-1.4.0-5.el7_5.1.x86_64.rpm                                                                                                                                                                       | 355 kB  00:00:00     
  205. (3/51): e2fsprogs-1.42.9-12.el7_5.x86_64.rpm                                                                                                                                                                         | 699 kB  00:00:00     
  206. (4/51): dwz-0.11-3.el7.x86_64.rpm                                                                                                                                                                                    |  99 kB  00:00:00     
  207. (5/51): e2fsprogs-libs-1.42.9-12.el7_5.x86_64.rpm                                                                                                                                                                    | 167 kB  00:00:00     
  208. (6/51): fontpackages-filesystem-1.44-8.el7.noarch.rpm                                                                                                                                                                | 9.9 kB  00:00:00     
  209. (7/51): keyutils-libs-devel-1.5.8-3.el7.x86_64.rpm                                                                                                                                                                   |  37 kB  00:00:00     
  210. (8/51): cpp-4.8.5-28.el7_5.1.x86_64.rpm                                                                                                                                                                              | 5.9 MB  00:00:00     
  211. (9/51): fontconfig-2.10.95-11.el7.x86_64.rpm                                                                                                                                                                         | 229 kB  00:00:00     
  212. (10/51): krb5-devel-1.15.1-19.el7.x86_64.rpm                                                                                                                                                                         | 269 kB  00:00:00     
  213. (11/51): krb5-libs-1.15.1-19.el7.x86_64.rpm                                                                                                                                                                          | 747 kB  00:00:00     
  214. (12/51): libX11-common-1.6.5-1.el7.noarch.rpm                                                                                                                                                                        | 164 kB  00:00:00     
  215. (13/51): libXau-1.0.8-2.1.el7.x86_64.rpm                                                                                                                                                                             |  29 kB  00:00:00     
  216. (14/51): libXft-2.3.2-2.el7.x86_64.rpm                                                                                                                                                                               |  58 kB  00:00:00     
  217. (15/51): libXrender-0.9.10-1.el7.x86_64.rpm                                                                                                                                                                          |  26 kB  00:00:00     
  218. (16/51): gcc-4.8.5-28.el7_5.1.x86_64.rpm                                                                                                                                                                             |  16 MB  00:00:00     
  219. (17/51): libX11-1.6.5-1.el7.x86_64.rpm                                                                                                                                                                               | 606 kB  00:00:00     
  220. (18/51): libcom_err-devel-1.42.9-12.el7_5.x86_64.rpm                                                                                                                                                                 |  31 kB  00:00:00     
  221. (19/51): libcom_err-1.42.9-12.el7_5.x86_64.rpm                                                                                                                                                                       |  41 kB  00:00:00     
  222. (20/51): libgcc-4.8.5-28.el7_5.1.x86_64.rpm                                                                                                                                                                          | 101 kB  00:00:00     
  223. (21/51): libgomp-4.8.5-28.el7_5.1.x86_64.rpm                                                                                                                                                                         | 156 kB  00:00:00     
  224. (22/51): libkadm5-1.15.1-19.el7.x86_64.rpm                                                                                                                                                                           | 175 kB  00:00:00     
  225. (23/51): libselinux-2.5-12.el7.x86_64.rpm                                                                                                                                                                            | 162 kB  00:00:00     
  226. (24/51): libffi-devel-3.0.13-18.el7.x86_64.rpm                                                                                                                                                                       |  23 kB  00:00:00     
  227. (25/51): libselinux-devel-2.5-12.el7.x86_64.rpm                                                                                                                                                                      | 186 kB  00:00:00     
  228. (26/51): libselinux-python-2.5-12.el7.x86_64.rpm                                                                                                                                                                     | 235 kB  00:00:00     
  229. (27/51): libselinux-utils-2.5-12.el7.x86_64.rpm                                                                                                                                                                      | 151 kB  00:00:00     
  230. (28/51): libsepol-devel-2.5-8.1.el7.x86_64.rpm                                                                                                                                                                       |  77 kB  00:00:00     
  231. (29/51): libverto-devel-0.2.5-4.el7.x86_64.rpm                                                                                                                                                                       |  12 kB  00:00:00     
  232. (30/51): libsepol-2.5-8.1.el7.x86_64.rpm                                                                                                                                                                             | 297 kB  00:00:00     
  233. (31/51): libxcb-1.12-1.el7.x86_64.rpm                                                                                                                                                                                | 211 kB  00:00:00     
  234. (32/51): openssl-1.0.2k-12.el7.x86_64.rpm                                                                                                                                                                            | 492 kB  00:00:00     
  235. (33/51): openssl-libs-1.0.2k-12.el7.x86_64.rpm                                                                                                                                                                       | 1.2 MB  00:00:00     
  236. (34/51): libss-1.42.9-12.el7_5.x86_64.rpm                                                                                                                                                                            |  45 kB  00:00:00     
  237. (35/51): openssl-devel-1.0.2k-12.el7.x86_64.rpm                                                                                                                                                                      | 1.5 MB  00:00:00     
  238. (36/51): pcre-devel-8.32-17.el7.x86_64.rpm                                                                                                                                                                           | 480 kB  00:00:00     
  239. (37/51): perl-srpm-macros-1-8.el7.noarch.rpm                                                                                                                                                                         | 4.6 kB  00:00:00     
  240. (38/51): lyx-fonts-2.2.3-1.el7.noarch.rpm                                                                                                                                                                            | 159 kB  00:00:00     
  241. (39/51): python-2.7.5-68.el7.x86_64.rpm                                                                                                                                                                              |  93 kB  00:00:00     
  242. (40/51): python-devel-2.7.5-68.el7.x86_64.rpm                                                                                                                                                                        | 397 kB  00:00:00     
  243. (41/51): python-libs-2.7.5-68.el7.x86_64.rpm                                                                                                                                                                         | 5.6 MB  00:00:00     
  244. (42/51): python-virtualenv-15.1.0-2.el7.noarch.rpm                                                                                                                                                                   | 1.7 MB  00:00:00     
  245. (43/51): python-tools-2.7.5-68.el7.x86_64.rpm                                                                                                                                                                        | 855 kB  00:00:00     
  246. (44/51): redhat-rpm-config-9.1.0-80.el7.centos.noarch.rpm                                                                                                                                                            |  79 kB  00:00:00     
  247. (45/51): tix-8.4.3-12.el7.x86_64.rpm                                                                                                                                                                                 | 254 kB  00:00:00     
  248. (46/51): tk-8.5.13-6.el7.x86_64.rpm                                                                                                                                                                                  | 1.4 MB  00:00:00     
  249. (47/51): tkinter-2.7.5-68.el7.x86_64.rpm                                                                                                                                                                             | 324 kB  00:00:00     
  250. (48/51): zip-3.0-11.el7.x86_64.rpm                                                                                                                                                                                   | 260 kB  00:00:00     
  251. (49/51): zlib-devel-1.2.7-17.el7.x86_64.rpm                                                                                                                                                                          |  50 kB  00:00:00     
  252. (50/51): tcl-8.5.13-8.el7.x86_64.rpm                                                                                                                                                                                 | 1.9 MB  00:00:00     
  253. (51/51): python2-pip-8.1.2-6.el7.noarch.rpm                                                                                                                                                                          | 1.7 MB  00:00:00     
  254. --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  255. Total                                                                                                                                                                                                        41 MB/s |  46 MB  00:00:01     
  256. Running transaction check
  257. Running transaction test
  258. Transaction test succeeded
  259. Running transaction
  260.   Updating   : libcom_err-1.42.9-12.el7_5.x86_64                                                                                                                                                                                       1/70
  261.   Updating   : libsepol-2.5-8.1.el7.x86_64                                                                                                                                                                                             2/70
  262.   Updating   : libselinux-2.5-12.el7.x86_64                                                                                                                                                                                            3/70
  263.   Installing : 1:tcl-8.5.13-8.el7.x86_64                                                                                                                                                                                               4/70
  264.   Updating   : libgcc-4.8.5-28.el7_5.1.x86_64                                                                                                                                                                                          5/70
  265.   Installing : fontpackages-filesystem-1.44-8.el7.noarch                                                                                                                                                                               6/70
  266.   Installing : lyx-fonts-2.2.3-1.el7.noarch                                                                                                                                                                                            7/70
  267.   Installing : fontconfig-2.10.95-11.el7.x86_64                                                                                                                                                                                        8/70
  268.   Installing : libsepol-devel-2.5-8.1.el7.x86_64                                                                                                                                                                                       9/70
  269.   Updating   : e2fsprogs-libs-1.42.9-12.el7_5.x86_64                                                                                                                                                                                  10/70
  270.   Updating   : libss-1.42.9-12.el7_5.x86_64                                                                                                                                                                                           11/70
  271.   Installing : libcom_err-devel-1.42.9-12.el7_5.x86_64                                                                                                                                                                                12/70
  272.   Installing : perl-srpm-macros-1-8.el7.noarch                                                                                                                                                                                        13/70
  273.   Installing : dwz-0.11-3.el7.x86_64                                                                                                                                                                                                  14/70
  274.   Installing : libXau-1.0.8-2.1.el7.x86_64                                                                                                                                                                                            15/70
  275.   Installing : libxcb-1.12-1.el7.x86_64                                                                                                                                                                                               16/70
  276.   Updating   : ca-certificates-2018.2.22-70.0.el7_5.noarch                                                                                                                                                                            17/70
  277.   Updating   : 1:openssl-libs-1.0.2k-12.el7.x86_64                                                                                                                                                                                    18/70
  278.   Updating   : krb5-libs-1.15.1-19.el7.x86_64                                                                                                                                                                                         19/70
  279.   Updating   : python-libs-2.7.5-68.el7.x86_64                                                                                                                                                                                        20/70
  280.   Updating   : python-2.7.5-68.el7.x86_64                                                                                                                                                                                             21/70
  281.   Installing : python-devel-2.7.5-68.el7.x86_64                                                                                                                                                                                       22/70
  282.   Installing : libkadm5-1.15.1-19.el7.x86_64                                                                                                                                                                                          23/70
  283.   Installing : libX11-common-1.6.5-1.el7.noarch                                                                                                                                                                                       24/70
  284.   Installing : libX11-1.6.5-1.el7.x86_64                                                                                                                                                                                              25/70
  285.   Installing : libXrender-0.9.10-1.el7.x86_64                                                                                                                                                                                         26/70
  286.   Installing : libXft-2.3.2-2.el7.x86_64                                                                                                                                                                                              27/70
  287.   Installing : 1:tk-8.5.13-6.el7.x86_64                                                                                                                                                                                               28/70
  288.   Installing : 1:tix-8.4.3-12.el7.x86_64                                                                                                                                                                                              29/70
  289.   Installing : tkinter-2.7.5-68.el7.x86_64                                                                                                                                                                                            30/70
  290.   Updating   : cpp-4.8.5-28.el7_5.1.x86_64                                                                                                                                                                                            31/70
  291.   Installing : pcre-devel-8.32-17.el7.x86_64                                                                                                                                                                                          32/70
  292.   Installing : libselinux-devel-2.5-12.el7.x86_64                                                                                                                                                                                     33/70
  293.   Installing : libverto-devel-0.2.5-4.el7.x86_64                                                                                                                                                                                      34/70
  294.   Updating   : libgomp-4.8.5-28.el7_5.1.x86_64                                                                                                                                                                                        35/70
  295.   Installing : zip-3.0-11.el7.x86_64                                                                                                                                                                                                  36/70
  296.   Installing : keyutils-libs-devel-1.5.8-3.el7.x86_64                                                                                                                                                                                 37/70
  297.   Installing : krb5-devel-1.15.1-19.el7.x86_64                                                                                                                                                                                        38/70
  298.   Installing : zlib-devel-1.2.7-17.el7.x86_64                                                                                                                                                                                         39/70
  299.   Installing : 1:openssl-devel-1.0.2k-12.el7.x86_64                                                                                                                                                                                   40/70
  300.   Installing : redhat-rpm-config-9.1.0-80.el7.centos.noarch                                                                                                                                                                           41/70
  301.   Updating   : gcc-4.8.5-28.el7_5.1.x86_64                                                                                                                                                                                            42/70
  302.   Installing : python-tools-2.7.5-68.el7.x86_64                                                                                                                                                                                       43/70
  303.   Installing : python-virtualenv-15.1.0-2.el7.noarch                                                                                                                                                                                  44/70
  304.   Updating   : python2-pip-8.1.2-6.el7.noarch                                                                                                                                                                                         45/70
  305.   Updating   : libselinux-python-2.5-12.el7.x86_64                                                                                                                                                                                    46/70
  306.   Updating   : 1:openssl-1.0.2k-12.el7.x86_64                                                                                                                                                                                         47/70
  307.   Updating   : e2fsprogs-1.42.9-12.el7_5.x86_64                                                                                                                                                                                       48/70
  308.   Installing : augeas-libs-1.4.0-5.el7_5.1.x86_64                                                                                                                                                                                     49/70
  309.   Updating   : libselinux-utils-2.5-12.el7.x86_64                                                                                                                                                                                     50/70
  310.   Installing : libffi-devel-3.0.13-18.el7.x86_64                                                                                                                                                                                      51/70
  311.   Cleanup    : python2-pip-8.1.2-5.el7.noarch                                                                                                                                                                                         52/70
  312.   Cleanup    : 1:openssl-1.0.2k-8.el7.x86_64                                                                                                                                                                                          53/70
  313.   Cleanup    : e2fsprogs-1.42.9-10.el7.x86_64                                                                                                                                                                                         54/70
  314.   Cleanup    : gcc-4.8.5-16.el7.x86_64                                                                                                                                                                                                55/70
  315.   Cleanup    : libselinux-utils-2.5-11.el7.x86_64                                                                                                                                                                                     56/70
  316.   Cleanup    : libselinux-python-2.5-11.el7.x86_64                                                                                                                                                                                    57/70
  317.   Cleanup    : python-2.7.5-58.el7.x86_64                                                                                                                                                                                             58/70
  318.   Cleanup    : python-libs-2.7.5-58.el7.x86_64                                                                                                                                                                                        59/70
  319.   Cleanup    : krb5-libs-1.15.1-8.el7.x86_64                                                                                                                                                                                          60/70
  320.   Cleanup    : 1:openssl-libs-1.0.2k-8.el7.x86_64                                                                                                                                                                                     61/70
  321.   Cleanup    : libselinux-2.5-11.el7.x86_64                                                                                                                                                                                           62/70
  322.   Cleanup    : e2fsprogs-libs-1.42.9-10.el7.x86_64                                                                                                                                                                                    63/70
  323.   Cleanup    : libss-1.42.9-10.el7.x86_64                                                                                                                                                                                             64/70
  324.   Cleanup    : ca-certificates-2017.2.14-71.el7.noarch                                                                                                                                                                                65/70
  325.   Cleanup    : libcom_err-1.42.9-10.el7.x86_64                                                                                                                                                                                        66/70
  326.   Cleanup    : libsepol-2.5-6.el7.x86_64                                                                                                                                                                                              67/70
  327.   Cleanup    : cpp-4.8.5-16.el7.x86_64                                                                                                                                                                                                68/70
  328.   Cleanup    : libgcc-4.8.5-16.el7.x86_64                                                                                                                                                                                             69/70
  329.   Cleanup    : libgomp-4.8.5-16.el7.x86_64                                                                                                                                                                                            70/70
  330.   Verifying  : krb5-devel-1.15.1-19.el7.x86_64                                                                                                                                                                                         1/70
  331.   Verifying  : python-libs-2.7.5-68.el7.x86_64                                                                                                                                                                                         2/70
  332.   Verifying  : zlib-devel-1.2.7-17.el7.x86_64                                                                                                                                                                                          3/70
  333.   Verifying  : keyutils-libs-devel-1.5.8-3.el7.x86_64                                                                                                                                                                                  4/70
  334.   Verifying  : libX11-1.6.5-1.el7.x86_64                                                                                                                                                                                               5/70
  335.   Verifying  : fontconfig-2.10.95-11.el7.x86_64                                                                                                                                                                                        6/70
  336.   Verifying  : libXrender-0.9.10-1.el7.x86_64                                                                                                                                                                                          7/70
  337.   Verifying  : 1:tcl-8.5.13-8.el7.x86_64                                                                                                                                                                                               8/70
  338.   Verifying  : zip-3.0-11.el7.x86_64                                                                                                                                                                                                   9/70
  339.   Verifying  : tkinter-2.7.5-68.el7.x86_64                                                                                                                                                                                            10/70
  340.   Verifying  : libsepol-2.5-8.1.el7.x86_64                                                                                                                                                                                            11/70
  341.   Verifying  : 1:openssl-libs-1.0.2k-12.el7.x86_64                                                                                                                                                                                    12/70
  342.   Verifying  : python2-pip-8.1.2-6.el7.noarch                                                                                                                                                                                         13/70
  343.   Verifying  : libgomp-4.8.5-28.el7_5.1.x86_64                                                                                                                                                                                        14/70
  344.   Verifying  : libselinux-python-2.5-12.el7.x86_64                                                                                                                                                                                    15/70
  345.   Verifying  : 1:openssl-devel-1.0.2k-12.el7.x86_64                                                                                                                                                                                   16/70
  346.   Verifying  : libverto-devel-0.2.5-4.el7.x86_64                                                                                                                                                                                      17/70
  347.   Verifying  : libselinux-devel-2.5-12.el7.x86_64                                                                                                                                                                                     18/70
  348.   Verifying  : 1:tk-8.5.13-6.el7.x86_64                                                                                                                                                                                               19/70
  349.   Verifying  : gcc-4.8.5-28.el7_5.1.x86_64                                                                                                                                                                                            20/70
  350.   Verifying  : fontpackages-filesystem-1.44-8.el7.noarch                                                                                                                                                                              21/70
  351.   Verifying  : redhat-rpm-config-9.1.0-80.el7.centos.noarch                                                                                                                                                                           22/70
  352.   Verifying  : pcre-devel-8.32-17.el7.x86_64                                                                                                                                                                                          23/70
  353.   Verifying  : e2fsprogs-1.42.9-12.el7_5.x86_64                                                                                                                                                                                       24/70
  354.   Verifying  : libxcb-1.12-1.el7.x86_64                                                                                                                                                                                               25/70
  355.   Verifying  : e2fsprogs-libs-1.42.9-12.el7_5.x86_64                                                                                                                                                                                  26/70
  356.   Verifying  : libgcc-4.8.5-28.el7_5.1.x86_64                                                                                                                                                                                         27/70
  357.   Verifying  : libcom_err-1.42.9-12.el7_5.x86_64                                                                                                                                                                                      28/70
  358.   Verifying  : libss-1.42.9-12.el7_5.x86_64                                                                                                                                                                                           29/70
  359.   Verifying  : libcom_err-devel-1.42.9-12.el7_5.x86_64                                                                                                                                                                                30/70
  360.   Verifying  : cpp-4.8.5-28.el7_5.1.x86_64                                                                                                                                                                                            31/70
  361.   Verifying  : python-devel-2.7.5-68.el7.x86_64                                                                                                                                                                                       32/70
  362.   Verifying  : lyx-fonts-2.2.3-1.el7.noarch                                                                                                                                                                                           33/70
  363.   Verifying  : python-virtualenv-15.1.0-2.el7.noarch                                                                                                                                                                                  34/70
  364.   Verifying  : krb5-libs-1.15.1-19.el7.x86_64                                                                                                                                                                                         35/70
  365.   Verifying  : libffi-devel-3.0.13-18.el7.x86_64                                                                                                                                                                                      36/70
  366.   Verifying  : python-2.7.5-68.el7.x86_64                                                                                                                                                                                             37/70
  367.   Verifying  : libX11-common-1.6.5-1.el7.noarch                                                                                                                                                                                       38/70
  368.   Verifying  : ca-certificates-2018.2.22-70.0.el7_5.noarch                                                                                                                                                                            39/70
  369.   Verifying  : libselinux-2.5-12.el7.x86_64                                                                                                                                                                                           40/70
  370.   Verifying  : libXau-1.0.8-2.1.el7.x86_64                                                                                                                                                                                            41/70
  371.   Verifying  : python-tools-2.7.5-68.el7.x86_64                                                                                                                                                                                       42/70
  372.   Verifying  : augeas-libs-1.4.0-5.el7_5.1.x86_64                                                                                                                                                                                     43/70
  373.   Verifying  : libselinux-utils-2.5-12.el7.x86_64                                                                                                                                                                                     44/70
  374.   Verifying  : dwz-0.11-3.el7.x86_64                                                                                                                                                                                                  45/70
  375.   Verifying  : libXft-2.3.2-2.el7.x86_64                                                                                                                                                                                              46/70
  376.   Verifying  : libkadm5-1.15.1-19.el7.x86_64                                                                                                                                                                                          47/70
  377.   Verifying  : 1:openssl-1.0.2k-12.el7.x86_64                                                                                                                                                                                         48/70
  378.   Verifying  : libsepol-devel-2.5-8.1.el7.x86_64                                                                                                                                                                                      49/70
  379.   Verifying  : perl-srpm-macros-1-8.el7.noarch                                                                                                                                                                                        50/70
  380.   Verifying  : 1:tix-8.4.3-12.el7.x86_64                                                                                                                                                                                              51/70
  381.   Verifying  : libselinux-2.5-11.el7.x86_64                                                                                                                                                                                           52/70
  382.   Verifying  : python-libs-2.7.5-58.el7.x86_64                                                                                                                                                                                        53/70
  383.   Verifying  : libss-1.42.9-10.el7.x86_64                                                                                                                                                                                             54/70
  384.   Verifying  : krb5-libs-1.15.1-8.el7.x86_64                                                                                                                                                                                          55/70
  385.   Verifying  : gcc-4.8.5-16.el7.x86_64                                                                                                                                                                                                56/70
  386.   Verifying  : e2fsprogs-1.42.9-10.el7.x86_64                                                                                                                                                                                         57/70
  387.   Verifying  : libgcc-4.8.5-16.el7.x86_64                                                                                                                                                                                             58/70
  388.   Verifying  : 1:openssl-1.0.2k-8.el7.x86_64                                                                                                                                                                                          59/70
  389.   Verifying  : python2-pip-8.1.2-5.el7.noarch                                                                                                                                                                                         60/70
  390.   Verifying  : 1:openssl-libs-1.0.2k-8.el7.x86_64                                                                                                                                                                                     61/70
  391.   Verifying  : libgomp-4.8.5-16.el7.x86_64                                                                                                                                                                                            62/70
  392.   Verifying  : libsepol-2.5-6.el7.x86_64                                                                                                                                                                                              63/70
  393.   Verifying  : libselinux-python-2.5-11.el7.x86_64                                                                                                                                                                                    64/70
  394.   Verifying  : ca-certificates-2017.2.14-71.el7.noarch                                                                                                                                                                                65/70
  395.   Verifying  : libcom_err-1.42.9-10.el7.x86_64                                                                                                                                                                                        66/70
  396.   Verifying  : cpp-4.8.5-16.el7.x86_64                                                                                                                                                                                                67/70
  397.   Verifying  : e2fsprogs-libs-1.42.9-10.el7.x86_64                                                                                                                                                                                    68/70
  398.   Verifying  : libselinux-utils-2.5-11.el7.x86_64                                                                                                                                                                                     69/70
  399.   Verifying  : python-2.7.5-58.el7.x86_64                                                                                                                                                                                             70/70

  400. Installed:
  401.   augeas-libs.x86_64 0:1.4.0-5.el7_5.1           libffi-devel.x86_64 0:3.0.13-18.el7 openssl-devel.x86_64 1:1.0.2k-12.el7 python-devel.x86_64 0:2.7.5-68.el7 python-tools.x86_64 0:2.7.5-68.el7 python-virtualenv.noarch 0:15.1.0-2.el7
  402.   redhat-rpm-config.noarch 0:9.1.0-80.el7.centos

  403. Dependency Installed:
  404.   dwz.x86_64 0:0.11-3.el7              fontconfig.x86_64 0:2.10.95-11.el7  fontpackages-filesystem.noarch 0:1.44-8.el7 keyutils-libs-devel.x86_64 0:1.5.8-3.el7 krb5-devel.x86_64 0:1.15.1-19.el7         libX11.x86_64 0:1.6.5-1.el7   
  405.   libX11-common.noarch 0:1.6.5-1.el7   libXau.x86_64 0:1.0.8-2.1.el7       libXft.x86_64 0:2.3.2-2.el7                 libXrender.x86_64 0:0.9.10-1.el7         libcom_err-devel.x86_64 0:1.42.9-12.el7_5 libkadm5.x86_64 0:1.15.1-19.el7
  406.   libselinux-devel.x86_64 0:2.5-12.el7 libsepol-devel.x86_64 0:2.5-8.1.el7 libverto-devel.x86_64 0:0.2.5-4.el7         libxcb.x86_64 0:1.12-1.el7               lyx-fonts.noarch 0:2.2.3-1.el7            pcre-devel.x86_64 0:8.32-17.el7
  407.   perl-srpm-macros.noarch 0:1-8.el7    tcl.x86_64 1:8.5.13-8.el7           tix.x86_64 1:8.4.3-12.el7                   tk.x86_64 1:8.5.13-6.el7                 tkinter.x86_64 0:2.7.5-68.el7             zip.x86_64 0:3.0-11.el7        
  408.   zlib-devel.x86_64 0:1.2.7-17.el7   

  409. Updated:
  410.   ca-certificates.noarch 0:2018.2.22-70.0.el7_5                        gcc.x86_64 0:4.8.5-28.el7_5.1                        openssl.x86_64 1:1.0.2k-12.el7                        python2-pip.noarch 0:8.1.2-6.el7                       

  411. Dependency Updated:
  412.   cpp.x86_64 0:4.8.5-28.el7_5.1          e2fsprogs.x86_64 0:1.42.9-12.el7_5    e2fsprogs-libs.x86_64 0:1.42.9-12.el7_5    krb5-libs.x86_64 0:1.15.1-19.el7        libcom_err.x86_64 0:1.42.9-12.el7_5    libgcc.x86_64 0:4.8.5-28.el7_5.1   
  413.   libgomp.x86_64 0:4.8.5-28.el7_5.1      libselinux.x86_64 0:2.5-12.el7        libselinux-python.x86_64 0:2.5-12.el7      libselinux-utils.x86_64 0:2.5-12.el7    libsepol.x86_64 0:2.5-8.1.el7          libss.x86_64 0:1.42.9-12.el7_5     
  414.   openssl-libs.x86_64 1:1.0.2k-12.el7    python.x86_64 0:2.7.5-68.el7          python-libs.x86_64 0:2.7.5-68.el7         

  415. Complete!
  416. Creating virtual environment...
  417. Installing Python packages...
  418. Installation succeeded.
  419. Saving debug log to /var/log/letsencrypt/letsencrypt.log
  420. Plugins selected: Authenticator standalone, Installer None

  421. -------------------------------------------------------------------------------
  422. Please read the Terms of Service at
  423. https://letsencrypt.org/documents/LE-SA-v1.2-November-15-2017.pdf. You must
  424. agree in order to register with the ACME server at
  425. https://acme-v01.api.letsencrypt.org/directory
  426. -------------------------------------------------------------------------------
  427. (A)gree/(C)ancel: A
复制代码
到这里直接输入 A  同意  然后回车
  1. -------------------------------------------------------------------------------
  2. Would you be willing to share your email address with the Electronic Frontier
  3. Foundation, a founding partner of the Let's Encrypt project and the non-profit
  4. organization that develops Certbot? We'd like to send you email about our work
  5. encrypting the web, EFF news, campaigns, and ways to support digital freedom.
  6. -------------------------------------------------------------------------------
  7. (Y)es/(N)o: y
复制代码
输入 y回车
  1. Obtaining a new certificate
  2. Performing the following challenges:
  3. http-01 challenge for code2048.net
  4. http-01 challenge for www.code2048.net
  5. Waiting for verification...
  6. Cleaning up challenges

  7. IMPORTANT NOTES:
  8. - Congratulations! Your certificate and chain have been saved at:
  9.    /etc/letsencrypt/live/code2048.net/fullchain.pem
  10.    Your key file has been saved at:
  11.    /etc/letsencrypt/live/code2048.net/privkey.pem
  12.    Your cert will expire on 2018-10-08. To obtain a new or tweaked
  13.    version of this certificate in the future, simply run
  14.    letsencrypt-auto again. To non-interactively renew *all* of your
  15.    certificates, run "letsencrypt-auto renew"
  16. - Your account credentials have been saved in your Certbot
  17.    configuration directory at /etc/letsencrypt. You should make a
  18.    secure backup of this folder now. This configuration directory will
  19.    also contain certificates and private keys obtained by Certbot so
  20.    making regular backups of this folder is ideal.
  21. - If you like Certbot, please consider supporting our work by:

  22.    Donating to ISRG / Let's Encrypt:   https://letsencrypt.org/donate
  23.    Donating to EFF:                    https://eff.org/donate-le
复制代码
然后看到这个界面表示部署成功。中间会收到一个邮件激活一下即可。
然后查看生成的证书:
  1. [root@poxiao letsencrypt]# cd /etc/letsencrypt/live/code2048.net
  2. [root@poxiao code2048.net]# ls
  3. cert.pem  chain.pem  fullchain.pem  privkey.pem  README
复制代码
Let’s Encrypt免费SSL证书获取与应用
cert.pem  – Apache服务器端证书
chain.pem  – Apache根证书和中继证书
fullchain.pem  – Nginx所需要ssl_certificate文件
privkey.pem – 安全证书KEY文件
如果我们使用的Nginx环境,那就需要用到fullchain.pem和privkey.pem两个证书文件,在部署Nginx的时候需要用到,如果是Tomcat  则需要cert.pem,chain.pem和privkey.pem

解决Let’s Encrypt免费SSL证书有效期问题
我们从生成的文件中可以看到,Let’s Encrypt证书是有效期90天的,需要我们自己手工更新续期才可以。
  1. ./letsencrypt-auto certonly --renew-by-default --email admin@code2048.net -d code2048.net -d www.code2048.net
复制代码
这样我们在90天内再去执行一次就可以解决续期问题,这样又可以继续使用90天。如果我们怕忘记的话也可以制作成定时执行任务,比如每个月执行一次。
可以写个计划任务脚本:
  1. 这样我们在90天内再去执行一次就可以解决续期问题,这样又可以继续使用90天。如果我们怕忘记的话也可以制作成定时执行任务,比如每个月执行一次。

  2. 可以写个计划任务脚本:
复制代码

加上定期执行

关于Let’s Encrypt免费SSL证书总结
通过以上几个步骤的学习和应用,我们肯定学会了利用Let’s Encrypt免费生成和获取SSL证书文件,随着Let’s Encrypt的应用普及,SSL以后直接免费不需要购买,因为大部分主流浏览器都支持且有更多的主流商家的支持和赞助,HTTPS以后看来也是趋势。在Let’s Encrypt执行过程在中我们需要解决几个问题。
A – 域名DNS和解析问题。在配置Let’s Encrypt免费SSL证书的时候域名一定要解析到当前VPS服务器,而且DNS必须用到海外域名DNS,如果用国内免费DNS可能会导致获取不到错误。
B – 安装Let’s Encrypt部署之前需要服务器支持PYTHON2.7以及GIT环境,要不无法部署。
C – Let’s Encrypt默认是90天免费,需要手工或者自动续期才可以继续使用。







回复

使用道具 举报

游客
回复
您需要登录后才可以回帖 登录 | 立即注册

快速回复 返回顶部 返回列表