Let's Encrypt的https证书申请及安装(泛域名)

优点:不需要域名必须在公网解析(因为不会再进行公网ssl验证了),并且不需要每次添加新域名都要进行一次域名的验证,而只需要首次TXT记录的验证就行,以后再添加同级域名直接就是带有ssl的。缺点:支支持同级的泛域名,例如*.domain支持A.domain、B.domain,但是不支持A.B.domain。下面介绍下使用。安装acme.shcurl https://get.acme.sh | sh

- 阅读全文 -

PHPMailer + SSL使用

<?php require('phpmailer/class.phpmailer.php'); require('phpmailer/class.smtp.php'); $mailer = new PHPMailer(); // 使用SMTP形式发送 $mailer->IsSMTP(); // 编码 $mailer->CharSet =

- 阅读全文 -

【在用】Postfix + Dovecot + SSL邮件服务器配置

一、删除系统自带的sendmailyum remove sendmail或者rpm -e sendmail 二、安装crontabs(计划任务)服务yum install crontabs service crond start chkconfig crond on 三、安装postfix,dovecot如果yum提示找不到软件包,请换一下源,请参考centos 6推荐使用epel源(http:/

- 阅读全文 -

Let's Encrypt的https证书申请及安装(nginx)

1、首先要安装pthon2.7+版本,因为Let's Encrypt需要在python2.7+版本的环境上运行,安装方法:CentOS下源码包编译安装Python-2.7.8 ,不然会报如下错误: Traceback (most recent call last): File "acme_tiny.py", line 2, in <module>

- 阅读全文 -