Using specific client certificate in javascript https request

I’m trying to develop a extension which will call an API. But this API requires a pre-authorized client certificate.

I thought I could add the client certificate to the certificate store and then in my background script setup firefox to use this trusted certificate to make an https request.

Is that possible?