{"blog_url":"https://y0m0r.hateblo.jp/","author_url":"https://blog.hatena.ne.jp/yuheiomori0718/","url":"https://y0m0r.hateblo.jp/entry/20130302/1362237191","type":"rich","published":"2013-03-02 00:13:11","version":"1.0","provider_url":"https://hatena.blog","categories":["python","memo"],"blog_title":"\u30e1\u30e2\u7f6e\u304d\u5834","title":"x509\u8a3c\u660e\u66f8","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fy0m0r.hateblo.jp%2Fentry%2F20130302%2F1362237191\" title=\"x509\u8a3c\u660e\u66f8 - \u30e1\u30e2\u7f6e\u304d\u5834\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","description":"\u6628\u65e5\u4f5c\u6210\u3057\u3066\u307f\u305f\u81ea\u5df1\u7f72\u540d\u8a3c\u660e\u66f8\u3092python\u3067\u6271\u3063\u3066\u307f\u308b PyOpenSSL\u3092\u4f7f\u3046\u3068\u308a\u3042\u3048\u305a\u3001load_certificate\u3067\u8aad\u307f\u8fbc\u3093\u3067\u4e2d\u8eab\u3092\u78ba\u8a8d # coding=utf-8 from OpenSSL.crypto import load_certificate, FILETYPE_PEM with open('cacert.pem') as f: x509 = load_certificate(FILETYPE_PEM, f.read()) print \"version\", x509.get_version() print \"\u30b7\u30ea\u30a2\u30eb\u756a\u53f7\", x509.get_serial_number\u2026","author_name":"yuheiomori0718","provider_name":"Hatena Blog","height":"190","width":"100%","image_url":null}