download untrusted certifcate in Chrome (Mac)

房东的猫 提交于 2020-08-24 07:25:40

问题


I have this website which contains an untrusted certificate (self signed). Now I want to download this certificate. But, for example, in Chrome, you only can 'Proceed' or go back (no download option). I'm on a Mac, so I've checked the Keychain access tool but it contains a lot. First of all I don't know if the cert is supposed to be in here, and second, I actually don't know how it looks like. For example, the url is https://example.com:8181/myApp Any suggestions how to find the cert ?

UPDATE: I just noticed that in Chrome you can click on the right of the url on the lock icon. It show some cert info, but still no option to download :(

enter image description here


回答1:


openssl s_client -connect {HOSTNAME}:{PORT} </dev/null 2>/dev/null|openssl x509 -outform PEM >mycertfile.pem

...explained here.




回答2:


It turns out that the way to go is using the lock-icon next to the url. You can drag the certificate icon to, for example, you desktop. It is explain here.



来源:https://stackoverflow.com/questions/18183188/download-untrusted-certifcate-in-chrome-mac

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!