Network 板


LINE

※ [本文轉錄自 Web_Design 看板 #1H_8_-WV ] 作者: sean72 (.) 看板: Web_Design 標題: [問題] Certificate 憑證 時間: Sat Aug 3 13:07:08 2013 最近在網路上看了certificate的內容 但是不是很了解 因為本身在寫python程式 所以也就參考了他上面的說明 我逐字閱讀還是有不懂得地方 我將我的問題貼在文章的前頭 希望有人能幫忙回答 謝謝 自己整理的結論: 所以憑證裡面包含的東西有 a. subject的名稱以及subject的公鑰 b. issuer裡面的資訊: 誰是subject,以及憑證裡面subject的公鑰是否正確 整串短文看完,我還是不清楚這個東西如何運作 我知道certificate是由第三方公司例如verisign所認證簽發 所以如果當我登入某家銀行的網站 那麼我的電腦就是subject,銀行的主機就是issuer這樣嗎? 那麼當我連接到銀行主機的時候,這個certificate是什麼時候飛進我和銀行之間? certificate是銀行寄給我的嗎? 如果是,銀行寄給我憑證,我打開憑證,使用裡面我(subject)的那把公鑰, 去解開我私鑰加密的訊息? 那銀行一開始怎麼會有我的公鑰? 難道我的公鑰大家都可以任意取得? Verisign如何取得我的電腦名稱以及公鑰資訊?自己整理的結論: 所以憑證裡面包含的東西有 a. subject的名稱以及subject的公鑰 b. issuer裡面的資訊: 誰是subject,以及憑證裡面subject的公鑰是否正確 整串短文看完,我還是不清楚這個東西如何運作 我知道certificate是由第三方公司例如Verisign所認證簽發 所以如果當我登入某家銀行的網站 那麼我的電腦就是subject,銀行的主機就是issuer這樣嗎? 那麼當我連接到銀行主機的時候,這個certificate是什麼時候飛進我和銀行之間? certificate是銀行寄給我的嗎? 如果是,銀行寄給我憑證,我打開憑證,使用裡面我(subject)的那把公鑰, 去解開我私鑰加密的訊息? 那銀行一開始怎麼會有我的公鑰? 難道我的公鑰大家都可以任意取得? Verisign如何取得我的電腦名稱以及公鑰資訊? http://docs.python.org/3.3/library/ssl.html#certificates Certificates in general are part of a public-key / private-key system. In this system, each principal, (which may be a machine, or a person, or an organization) is assigned a unique two-part encryption key. One part of the key is public, and is called the public key; the other part is kept secret, and is called the private key. The two parts are related, in that if you encrypt a message with one of the parts, you can decrypt it with the other part, and only with the other part. 每台機器都會有一把"公鑰" 一把"私鑰",如果你用其中一把鑰匙去加密,就得用另 外一把相對應的鑰匙去解密 (但是他沒說要用"哪一把"去加密,不過從下文推斷 應該是用私鑰加密公鑰解密 但是說不定也能反其道而行?) A certificate contains information about two principals. "憑證"包含兩台機器的訊息 It contains the name of a subject, and the subject’s public key. 憑證包含了某台機器(subject)的名稱以及他的公鑰 It also contains a statement by a second principal, the issuer, that the subject is who he claims to be, and that this is indeed the subject’s public key. 另一台機器(issuer)有下面兩個資訊: 1.誰是subject, 2.以及憑證裡面subject的公鑰是否正確 憑證除了上述subject以及subjet公鑰以外,另外也包含issuer裡面的這份資訊 The issuer’s statement is signed with the issuer’s private key, which only the issuer knows. Issuer的資訊被issuer的私鑰加密過了 However, anyone can verify the issuer’s statement by finding the issuer’s public key, decrypting the statement with it, and comparing it to the other information in the certificate. 只要有issuer公鑰的人,都可以用issuer的公鑰去解密issuer的資訊,去驗證,然後比較 憑證裡面有關issuer的資訊以及issuer本身的資訊 --



※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 172.249.127.149



※ 發信站: 批踢踢實業坊(ptt.cc)
※ 轉錄者: sean72 (172.249.127.149), 時間: 08/03/2013 13:07:25







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

請輸入看板名稱,例如:e-shopping站內搜尋

TOP