mirror of
https://github.com/documenso/documenso.git
synced 2025-11-10 04:22:32 +10:00
fix: support passphrase env var
This commit is contained in:
@ -18,6 +18,7 @@ NEXTAUTH_URL='http://localhost:3000'
|
||||
|
||||
# SIGNING
|
||||
CERT_FILE_PATH=
|
||||
CERT_PASSPHRASE=
|
||||
|
||||
# MAIL (NODEMAILER)
|
||||
# SENDGRID
|
||||
|
||||
@ -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