Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

根证书过期,需要重新生成 #148

Open
albert-zhang opened this issue Dec 11, 2021 · 1 comment
Open

根证书过期,需要重新生成 #148

albert-zhang opened this issue Dec 11, 2021 · 1 comment

Comments

@albert-zhang
Copy link

albert-zhang commented Dec 11, 2021

根证书已过期,如图:
zan-cert-outofdate

我尝试了把~/.front-end-proxy/certificate目录删掉,重启zan-proxy App,重新在此目录生成的根证书还是老的。

请问如何重新生成新的根证书?

@albert-zhang albert-zhang changed the title 需要重新生成根证书 根证书过期,需要重新生成 Dec 11, 2021
@albert-zhang
Copy link
Author

albert-zhang commented Dec 11, 2021

有一个方法可以解决,自己用Keychain Access生成根证书,或者使用Charles这类工具现成的根证书,配上对应私钥,替换这里的证书和私钥就行:

/Applications/Zan Proxy.app/Contents/Resources/resource/certificate

然后记得把~/.front-end-proxy/certificate删掉、重启zanProxy

经测试key要PKCS#1格式

转换方式参考:https://www.ssl.com/how-to/export-certificates-private-key-from-pkcs12-file-with-openssl/

FYI

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant