美文网首页
【转】ubuntu 14.04 配置https 解决阿里云证书配

【转】ubuntu 14.04 配置https 解决阿里云证书配

作者: tensioner | 来源:发表于2017-11-22 11:28 被阅读0次

( 1 ) 在Apache的安装目录下创建cert目录,并且将下载的全部文件拷贝到cert目录中。


#mkdir /etc/apache2/cert

#mv /download/public.pem/etc/apache2/cert/public.pem

#mv /download/21#####63.key /etc/apache2/cert/21#####63.key

#mv /download/chain.pem /etc/apache2/cert/chain.pem

#a2enmod ssl

(2)修改ports.conf

#vi /etc/apache2/ports.conf

(3)修改default-ssl

#vi/etc/apache2/sites-available/default-ssl

# SSLCertificateFile directive is needed.

        SSLCertificateFile /etc/apache2/cert/public.pem

        SSLCertificateKeyFile /etc/apache2/cert/21#####63.key

# Server Certificate Chain:

# Point SSLCertificateChainFile at a file containing the

# concatenation of PEM encoded CA certificates which form the

# certificate chain for the server certificate. Alternatively

# the referenced file can be the same as SSLCertificateFile

# when the CA certificates are directly appended to the serve

r# certificate for convinience.

        SSLCertificateChainFile /etc/apache2/cert/chain.pem

(4)启用ssl,重启apache

#a2ensitedefault-ssl

#service apache2 restart

Apache2.4.7配置https,解决阿里云证书配置之痛

相关文章

网友评论

      本文标题:【转】ubuntu 14.04 配置https 解决阿里云证书配

      本文链接:https://www.haomeiwen.com/subject/agsnvxtx.html