8000 How do I use other types of key certificates in the setCertPath method · Issue #326 · an-tao/trantor · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

How do I use other types of key certificates in the setCertPath method #326

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and 853E 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

Open
fuzijianxh opened this issue Mar 6, 2024 · 0 comments
Open

Comments

@fuzijianxh
Copy link
fuzijianxh commented Mar 6, 2024

I successfully used the RSA certificate in the following three methods:

auto policy = TLSPolicy::defaultClientPolicy();
        policy->setCertPath("./client-crt.pem")
            .setKeyPath("./server-key.pem")
            .setCaPath("./ca-crt.pem")
            .setHostname("localhost");
        client[i]->enableSSL(policy);

but encountered loading failure with the SM2 certificate.

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
0