Skip to content

Usage of new functions in WiFiClientSecure.h #1762

Closed
@noelgeorgi

Description

@noelgeorgi

Any help regarding usage of these functions is appreciated:
** void setCertificate(const uint8_t* cert_data, size_t size);
void setPrivateKey(const uint8_t* pk, size_t size);

bool loadCertificate(Stream& stream, size_t size);
bool loadPrivateKey(Stream& stream, size_t size);

template
bool loadCertificate(TFile& file) {
return loadCertificate(file, file.size());
}

template
bool loadPrivateKey(TFile& file) {
return loadPrivateKey(file, file.size());
}**

I am using mqtt with ssl, so i have to provide ca.crt to esp any idea?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions