def METHOD_NAME(self) -> Optional[dict]:
    if isinstance(self.config.certificates, QlikCertificatePath):
        context = {
            "ca_certs": self.config.certificates.rootCertificate,
            "certfile": self.config.certificates.clientCertificate,
            "keyfile": self.config.certificates.clientKeyCertificate,
        }
        return context
    init_staging_dir(self.config.certificates.stagingDir)
    root_path = Path(self.config.certificates.stagingDir, "root.pem")
    client_path = Path(self.config.certificates.stagingDir, "client.pem")
    client_key_path = Path(self.config.certificates.stagingDir, "client_key.pem")
    self.write_data_to_file(
        root_path, self.config.certificates.rootCertificateData.get_secret_value()
    )
    self.write_data_to_file(
        client_path,
        self.config.certificates.clientCertificateData.get_secret_value(),
    )
    self.write_data_to_file(
        client_key_path,
        self.config.certificates.clientKeyCertificateData.get_secret_value(),
    )
    context = {
        "ca_certs": root_path,
        "certfile": client_path,
        "keyfile": client_key_path,
    }
    return context