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燈, 水草

請輸入看板名稱,例如:Gossiping站內搜尋

TOP