0
qi 1.44K 贡献

1、WP上安装插件:https://wordpress.org/plugins/wp-encrypt/,在Apache的配置中开启SSLEngine。

2、假设你的WordPress网站叫www.example.com,那么WP Encrypt生成的证书一般在~/app-root/data/letsencrypt/live/www.example.com/,通过rhc把这些证书下载下来:

rhc scp wpms download ./ app-root/data/letsencrypt/live/wpms-tizgrape.rhcloud.com/*

rhc scp wpms download ./ app-root/data/letsencrypt/live/www.example.com/cert.pem
rhc scp wpms download ./ app-root/data/letsencrypt/live/www.example.com/chain.pem
rhc scp wpms download ./ app-root/data/letsencrypt/live/www.example.com/fullchain.pem
rhc scp wpms download ./ app-root/data/letsencrypt/live/www.example.com/last.csr
rhc scp wpms download ./ app-root/data/letsencrypt/live/www.example.com/private.pem
rhc scp wpms download ./ app-root/data/letsencrypt/live/www.example.com/public.pem

3、然后再把其中的两个上传到Openshift的证书配置服务器上:

rhc alias update-cert www.example.com --certificate fullchain.pem --private-key private.pem

现在就大功搞成了。参考:http://blog.zh4ui.net/openshift%EF%BC%8Cwordpress%E5%92%8Clets-encrypt/

Attachments

lets-encrypt.png
cmink 回答了