Open arvydas-kezunas opened 1 month ago
import {Signer} from '@signpdf/signpdf'
class AzureVaultSigner extends Signer {
signature: Buffer;
constructor(signature: any) {
super();
this.signature = Buffer.from(signature);; // Store the signature
}
async sign(pdfBuffer, signingTime) {
return pdfBuffer;
}
}
export default AzureVaultSigner;
You're just returning the PDF in your signer and not the signature. If you change that, it may work
i will check that
import {Signer} from '@signpdf/signpdf' class AzureVaultSigner extends Signer { signature: Buffer; constructor(signature: any) { super(); this.signature = Buffer.from(signature);; // Store the signature } async sign(pdfBuffer, signingTime) { return pdfBuffer; } } export default AzureVaultSigner;
You're just returning the PDF in your signer and not the signature. If you change that, it may work
Maybe you have idea where i could fine example of custom signer that would work with my issue?
Greetings everyone, i am facing some issues with putting digital signatures on pdf files with using azure certificate vault. Problem appears when certificate is with non-exportable private key and have to rely on azure cryptography client. this is my current implementation:
as i understand, Azure
s cryptoclient sign returns the signature it self, that later has to be injected in to original pdf. And i believe that issue is in my custom signer. and after running the api i
m getting this