容器技术交流

 找回密码
 立即注册
查看: 6373|回复: 9

付费任务:如何在PHP扩展里打开openssl支持?

[复制链接]
发表于 2011-3-28 22:26:10 | 显示全部楼层 |阅读模式
本帖最后由 freddy 于 2011-4-8 10:38 编辑

安装个PHP的微博程序需要那个支持,请指教!
http://t.00baby.com/install/step0.html 安装这个出现的问题!
发表于 2011-3-28 22:50:46 | 显示全部楼层
LuNamp中的nginx已经可以支持ssl,但配置的话,目前还无法做到傻瓜化
请搜索相关资料,然后更改/usr/local/nginx/conf/vhost.conf文件的内容,然后重启nginx便可
 楼主| 发表于 2011-3-29 10:55:31 | 显示全部楼层
LuNamp中的nginx已经可以支持ssl,但配置的话,目前还无法做到傻瓜化
请搜索相关资料,然后更改/usr/local/nginx/conf/vhost.conf文件的内容,然后重启nginx便可
爱洞特漏 发表于 2011-3-28 22:50


洞洞 你不能一句搜索相关资料就把我打发了,起码告诉我搜索啥资料也行啊,这相关太磅礴了,我搜索不起啊
发表于 2011-3-29 11:49:55 | 显示全部楼层
nginx ssl 配置
 楼主| 发表于 2011-3-30 13:35:23 | 显示全部楼层
付费求助吧,搜索了半天搞不明白步骤,有能力帮我的报价!谢谢  766270 QQ
发表于 2011-3-30 17:58:46 | 显示全部楼层
加群,应该会有人帮你的
 楼主| 发表于 2011-4-8 10:38:18 | 显示全部楼层
 楼主| 发表于 2011-4-8 11:25:06 | 显示全部楼层
安装包,大家可以试试,腾讯的微博API接口http://open.t.qq.com/apps/iweibo/
发表于 2011-4-9 01:27:39 | 显示全部楼层
本帖最后由 hnbbs 于 2011-4-9 01:33 编辑

晚上测试了下,需要如此操作:
1、生成证书【证书仅供本机测试】
  1. $ cd /usr/local/nginx/conf
  2. $ openssl genrsa -des3 -out server.key 1024
  3. $ openssl req -new -key server.key -out server.csr
  4. $ cp server.key server.key.org
  5. $ openssl rsa -in server.key.org -out server.key
  6. $ openssl x509 -req -days 365 -in server.csr -signkey server.key -out server.crt
复制代码
2、配置nginx
vhost.conf
  1. server {
  2. server_name YOUR_DOMAINNAME_HERE;
  3. listen 443;
  4. ssl on;
  5. ssl_certificate /usr/local/nginx/conf/server.crt;
  6. ssl_certificate_key /usr/local/nginx/conf/server.key;
  7. }
复制代码
3、重新编译php以便支持openssl
php_fcgi.sh
  1. --with-openssl=../openssl-1.0.0c \
复制代码
发表于 2011-4-9 08:49:18 | 显示全部楼层
自动动手丰衣足食啊。
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Archiver|URLOS ( 粤ICP备18087780号 )

GMT+8, 2025-5-15 11:49 , Processed in 0.028135 second(s), 18 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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