feat: tratando certificado sem senha
This commit is contained in:
parent
ffae4e9bed
commit
7450ff07da
1 changed files with 1 additions and 1 deletions
|
@ -41,7 +41,7 @@ export class LhispOauthClient<iAccessToken extends AccessToken = AccessToken> {
|
|||
if (params.certificado) {
|
||||
this.agent = new https.Agent({
|
||||
pfx: Buffer.isBuffer(params.certificado) ? params.certificado : Buffer.from(params.certificado, "base64"),
|
||||
passphrase: params.senhaCertificado,
|
||||
passphrase: params.senhaCertificado ? params.senhaCertificado : undefined,
|
||||
rejectUnauthorized: false,
|
||||
});
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue