Can someone provide an example for future certificate use in React?
I added .pem to the specified directory, but how do I refer to it in my API call?
I tried the following in various ways, but could not get it to work:
axios .post(loginApi, body, { httpsAgent: new https.Agent({ ca: "test_certificate.pem" }) } ) .then(response => { ... }) .catch(error => { ... });
How to transfer a certificate to an https agent? Do I need to import a certificate along its path?
I am really new to this topic, so I apologize for the lack of knowledge.
source share