mirror of
https://github.com/documenso/documenso.git
synced 2025-11-17 02:01:33 +10:00
fix: support passphrase env var
This commit is contained in:
@ -61,7 +61,7 @@ export const addDigitalSignature = async (documentAsBase64: string): Promise<str
|
||||
|
||||
const signObj = new signer.SignPdf();
|
||||
const signedPdfBuffer: Buffer = signObj.sign(modifiedPdfBuffer, p12Buffer, {
|
||||
passphrase: "",
|
||||
passphrase: process.env.CERT_PASSPHRASE || "",
|
||||
});
|
||||
|
||||
return signedPdfBuffer.toString("base64");
|
||||
|
||||
Reference in New Issue
Block a user