Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

159
Views
Convert pkcs7 file to base64 signature

I'm trying to verify my signature which is in .p7s file. I've alteady succeed to verify a signed string, but what to do with .p7s? The library requires the file to be decoded in some way. How to extract signature from PKCS7 in Javascript?

The valid signature looks like this https://justpaste.it/7q72n

    var signature = SignDataInternal('hello')
    console.log(signature) // valid signature
    var signInfo = VerifyDataInternal(signature);
    _printSignInfo(signInfo); // it works


    let p7Data = fs.readFileSync('./data/signed.p7s')
    // ???? how to convert it??
    signInfo = VerifyDataInternal(p7Data) // error: wrong data format
    _printSignInfo(signInfo)
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!