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

node-opcua / node-opcua-pki / 25743456608
90%

Build:
DEFAULT BRANCH: master
Ran 12 May 2026 03:13PM 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

12 May 2026 03:07PM UTC coverage: 90.315% (+0.4%) from 89.962%
25743456608

push

github

erossignon
feat(ca): opt-in CDP & AIA extensions in issued certificates

CertificateAuthority gains three configurable revocation-discovery
URLs — crlDistributionUrl, ocspResponderUrl, caIssuersUrl — set
either through the constructor options or via the matching setters.
When configured, every certificate issued by the CA carries the
corresponding X.509v3 extension:

  - crlDistributionPoints: URI:<crlDistributionUrl>
  - authorityInfoAccess:   OCSP;URI:<ocspResponderUrl>,
                           caIssuers;URI:<caIssuersUrl>

When a URL is left undefined, the matching extension is OMITTED
from the cert. This replaces the previous behaviour where the CA
template hardcoded a CDP URL of http://localhost:8900/crl.pem on
the CA's own cert — useless in any deployment outside dev — and no
CDP at all on end-entity certs.

Setter validation runs synchronously and throws on empty string,
non-http(s) protocol, missing path, or any URL.parse failure.
Loopback hostnames produce a warning but are accepted (tests + dev).

Implementation:
  - unsetEnv + Mustache-style {{#KEY}}...{{/KEY}} conditional blocks
    in the OpenSSL config templates, stripped at substitution time
    by generateStaticConfig when the matching env var is absent or
    empty.
  - _wireRevocationEnvVars() populates the env vars from the
    configured URLs and is invoked before every config rendering
    that signs a cert (CA self-sign, subordinate CA sign, end-entity
    sign).

Tests cover all eight combinations of {none, CDP, OCSP, caIssuers,
all-three} plus full setter-validation surface, verified against
openssl x509 -text -noout output — i.e. the way every relying
party actually reads the certs.

Refs: US-202

489 of 658 branches covered (74.32%)

48 of 48 new or added lines in 3 files covered. (100.0%)

1464 of 1621 relevant lines covered (90.31%)

250.15 hits per line

Jobs
ID Job ID Ran Files Coverage
1 25743456608.1 12 May 2026 03:13PM UTC 21
90.31
GitHub Action Run
Source Files on build 25743456608
  • Tree
  • List 21
  • Changed 4
  • Source Changed 4
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #25743456608
  • 0ed2da92 on github
  • Prev Build on master (#25151955083)
  • Next Build on master (#25743546868)
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