Skip to content

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

@fuzijianxh

Description

@fuzijianxh

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions