Modchip 板


LINE

SSL 签证的部份已经搞定了,剩下 DNS解析的部份。需要 Linux环境(cygwin或 原生 Linux)跟OpenSSL 套件。 在cygwin里面建议安装apt-cyg 工具,就可以利用类似Debian/Ubuntu/Cydia 里 面的apt 指令直接安装套件,不用再跳出来执行setup.exe 。以下指令中 $是提 示字元。 指令: $ wget http://apt-cyg.googlecode.com/svn/trunk/apt-cyg $ chmod +x apt-cyg $ mv apt-cyg /usr/bin 然後安装OpenSSL 指令: $ apt-cyg install openssl 静待执行结束 Step 1-1. 生出最高层认证中心 Root CA 指令:(以cygwin为例, Linux的路径是/etc/ssl) $ cd /usr/ssl //进入 ssl程式工作目录 $ openssl rand -out /usr/ssl/private/.rand 1024 //制作乱数档 $ vi /usr/ssl/openssl.cnf //进入编辑器 //找到 dir = ./demoCA //改成 dir = /usr/ssl 不会用vi的人可以用其他编辑器,但请存成Unix换行格式 Step 1-2. 生出最高层认证中心的私钥(rootca.key) 指令: $ openssl genrsa -des3 -out rootca.key 2048 //产生最高层的私钥 Generating RSA private key, 2048 bit long modulus ............................................................................. ..............+++ ............................................................................. ...+++ e is 65537 (0x10001) Enter pass phrase for rootca.key: //设定密码 Verifying - Enter pass phrase for rootca.key: //重新确认密码 Step 1-3. 填写凭证申请书(rootca.req) $ openssl req -new -key rootca.key -out rootca.req Enter pass phrase for rootca.key: //输入刚刚设定的密码 You are about to be asked to enter information that will be incorporated \\ into your certificate request. What you are about to enter is what is called a Distinguished Name or \\ a DN. There are quite a few fields but you can leave some blank For some fields there will be a default value, If you enter '.', the field will be left blank. ----- Country Name (2 letter code) [AU]:TW //输入基本资料 State or Province Name (full name) [Some-State]:Taiwan R.O.C Locality Name (eg, city) []:Taipei Organization Name (eg, company) [Internet Widgits Pty Ltd]:NTU Organizational Unit Name (eg, section) []:ptt Common Name (eg, YOUR name) []:Modchip Email Address []:[email protected] Please enter the following 'extra' attributes to be sent with your certificate request A challenge password []: //直接按Enter 跳过 An optional company name []: //直接按Enter 跳过 Step 1-4. 把凭证(rootca.crt)签出来 指令: $ openssl x509 -req -days 7305 -sha1 -extfile /usr/ssl/openssl.cnf \\ -extensions v3_ca -signkey rootca.key -in rootca.req -out rootca.crt Signature ok subject=/C=TW/ST=Taiwan R.O.C/L=Taipei/O=NTU/OU=ptt/CN=Modichip/ [email protected] Getting Private key Enter pass phrase for rootca.key: //输入最高层密码 Step 2-1.制作 PSN伺服器的私钥(auth.np.ac.playstation.net.key) 指令: $ openssl genrsa -out auth.np.ac.playstation.net.key 2048 Generating RSA private key, 2048 bit long modulus ............................................................................. .......................+++ ........................................................................+++ e is 65537 (0x10001) Step 2-2. 填写 PSN伺服器的凭证申请书(auth.np.ac.playstation.net.req) 指令: $ openssl req -new -key auth.np.ac.playstation.net.key -out \\ auth.np.ac.playstation.net.req You are about to be asked to enter information that will be \\ incorporated into your certificate request. What you are about to enter is what is called a Distinguished Name or \\ a DN. There are quite a few fields but you can leave some blank For some fields there will be a default value, If you enter '.', the field will be left blank. ----- Country Name (2 letter code) [AU]:TW State or Province Name (full name) [Some-State]:Taiwan R.O.C Locality Name (eg, city) []:Taipei Organization Name (eg, company) [Internet Widgits Pty Ltd]:NTU Organizational Unit Name (eg, section) []:ptt Common Name (eg, YOUR name) []:Modchip Email Address []:[email protected] Please enter the following 'extra' attributes to be sent with your certificate request A challenge password []: //直接按Enter跳过 An optional company name []: //一样按Enter跳过 Step 2-3. 用最高层认证中心签凭证给(auth.np.ac.playstation.net) $ openssl x509 -req -days 3650 -sha1 -extfile /usr/ssl/openssl.cnf \\ -extensions v3_req -CA rootca.crt -CAkey rootca.key -CAserial \\ rootca.srl -CAcreateserial -in auth.np.ac.playstation.net.req -out \\ auth.np.ac.playstation.net.crt Signature ok subject=/C=TW/ST=Taiwan R.O.C/L=Taipei/O=NTU/OU=ptt/CN=Modchip/\\ [email protected] Getting CA Private Key Enter pass phrase for rootca.key: //输入最高层密码 这样就可以得到rootca.crt跟auth.np.ac.playstation.net.crt,应该就是原文 所提到,自己制作的CA SSL凭证。 ****** 参考资讯:http://www.tc.umn.edu/~brams006/selfsign.html -- ____ _ _ _ _ ____ _ _ ____ _____ ____ (_ _)( \( )( \/ )( ___)( \( )(_ _)( _ )( _ \ _)(_ ) ( \ / )__) ) ( )( )(_)( ) / (____)(_)\_) \/ (____)(_)\_) (__) (_____)(_)\_) --



※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 140.120.31.133
1F:推 satou20444:专业推 02/12 13:19
2F:推 ilwu:专业! 02/12 13:41
3F:→ cassine:删去张爸推文 02/12 13:58
※ 编辑: cassine 来自: 140.120.31.133 (02/12 13:59)
4F:推 rabbit83035:推专业 看不懂@_@S 02/12 17:05
5F:推 Powernow:凭证作完了,可是还缺SSL Proxy和修改封包的部份 :( 02/12 20:59
6F:→ cassine:发现凭证做完还要写入/dev_flash/我不大喜欢这样搞=.= 02/12 21:02
7F:推 ninjaxin:感觉有要刷flash风险~~ 02/13 00:10







like.gif 您可能会有兴趣的文章
icon.png[问题/行为] 猫晚上进房间会不会有憋尿问题
icon.pngRe: [闲聊] 选了错误的女孩成为魔法少女 XDDDDDDDDDD
icon.png[正妹] 瑞典 一张
icon.png[心得] EMS高领长版毛衣.墨小楼MC1002
icon.png[分享] 丹龙隔热纸GE55+33+22
icon.png[问题] 清洗洗衣机
icon.png[寻物] 窗台下的空间
icon.png[闲聊] 双极の女神1 木魔爵
icon.png[售车] 新竹 1997 march 1297cc 白色 四门
icon.png[讨论] 能从照片感受到摄影者心情吗
icon.png[狂贺] 贺贺贺贺 贺!岛村卯月!总选举NO.1
icon.png[难过] 羡慕白皮肤的女生
icon.png阅读文章
icon.png[黑特]
icon.png[问题] SBK S1安装於安全帽位置
icon.png[分享] 旧woo100绝版开箱!!
icon.pngRe: [无言] 关於小包卫生纸
icon.png[开箱] E5-2683V3 RX480Strix 快睿C1 简单测试
icon.png[心得] 苍の海贼龙 地狱 执行者16PT
icon.png[售车] 1999年Virage iO 1.8EXi
icon.png[心得] 挑战33 LV10 狮子座pt solo
icon.png[闲聊] 手把手教你不被桶之新手主购教学
icon.png[分享] Civic Type R 量产版官方照无预警流出
icon.png[售车] Golf 4 2.0 银色 自排
icon.png[出售] Graco提篮汽座(有底座)2000元诚可议
icon.png[问题] 请问补牙材质掉了还能再补吗?(台中半年内
icon.png[问题] 44th 单曲 生写竟然都给重复的啊啊!
icon.png[心得] 华南红卡/icash 核卡
icon.png[问题] 拔牙矫正这样正常吗
icon.png[赠送] 老莫高业 初业 102年版
icon.png[情报] 三大行动支付 本季掀战火
icon.png[宝宝] 博客来Amos水蜡笔5/1特价五折
icon.pngRe: [心得] 新鲜人一些面试分享
icon.png[心得] 苍の海贼龙 地狱 麒麟25PT
icon.pngRe: [闲聊] (君の名は。雷慎入) 君名二创漫画翻译
icon.pngRe: [闲聊] OGN中场影片:失踪人口局 (英文字幕)
icon.png[问题] 台湾大哥大4G讯号差
icon.png[出售] [全国]全新千寻侘草LED灯, 水草

请输入看板名称,例如:Soft_Job站内搜寻

TOP