• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

node-opcua / node-opcua-pki / 23543726967
92%

Build:
DEFAULT BRANCH: master
Ran 25 Mar 2026 01:35PM UTC
Jobs 1
Files 21
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

25 Mar 2026 01:32PM UTC coverage: 92.349% (+0.2%) from 92.181%
23543726967

push

github

erossignon
feat(ca): add generateKeyPairAndSignDER method
(US-113 ACs 1-4)

New method on CertificateAuthority that generates an
ephemeral RSA key pair, creates an internal CSR, signs
it, and returns { certificateDer, privateKey }. The
private key is never stored by the CA — it exists only
in a temporary directory that is cleaned up after the
operation.

This supports StartNewKeyPairRequest (OPC UA Part 12)
for constrained devices that cannot generate their own
keys.

Options: applicationUri (required), subject, dns, ip,
validity (default: 365), startDate, keySize (default:
2048).

Also enhanced signCertificateRequestFromDER() to accept
CA override options (dns, ip, applicationUri, startDate,
subject) via a new SignCertificateOptions interface.

Exported new types:
- GenerateKeyPairAndSignOptions
- SignCertificateOptions

Added 3 unit tests:
- T5i: basic cert+key generation with cert-key matching
- T5j: custom keySize (3072-bit)
- T5k: signCertificateRequestFromDER with CA overrides

261 of 364 branches covered (71.7%)

29 of 29 new or added lines in 2 files covered. (100.0%)

32 existing lines in 1 file now uncovered.

1207 of 1307 relevant lines covered (92.35%)

259.98 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
32
89.65
0.02% packages/node-opcua-pki/lib/pki/certificate_manager.ts
Jobs
ID Job ID Ran Files Coverage
1 23543726967.1 25 Mar 2026 01:35PM UTC 21
92.35
GitHub Action Run
Source Files on build 23543726967
  • Tree
  • List 21
  • Changed 3
  • Source Changed 3
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #23543726967
  • ece765bc on github
  • Prev Build on master (#23511225303)
  • Next Build on master (#23548041496)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc