File tree Expand file tree Collapse file tree 1 file changed +30
-0
lines changed
Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Original file line number Diff line number Diff line change 1+ <?php
2+
3+ // SPDX-FileCopyrightText: 2026 LibreCode coop and contributors
4+ // SPDX-License-Identifier: AGPL-3.0-or-later
5+
6+ declare (strict_types=1 );
7+
8+ namespace LibreCodeCoop \NfsePHP \Config ;
9+
10+ /**
11+ * Immutable certificate configuration for NFS-e mTLS authentication.
12+ *
13+ * Holds the contributor CNPJ, the filesystem path to the PFX bundle, and
14+ * the OpenBao KV path from which the PFX password is retrieved just-in-time.
15+ * The password is never cached across job boundaries.
16+ */
17+ final readonly class CertConfig
18+ {
19+ public function __construct (
20+ /** CNPJ do prestador de serviço (only digits, 14 chars). */
21+ public string $ cnpj ,
22+
23+ /** Absolute filesystem path to the PFX certificate bundle. */
24+ public string $ pfxPath ,
25+
26+ /** OpenBao KV path for the PFX password (e.g. "secret/nfse/29842527000145"). */
27+ public string $ vaultPath ,
28+ ) {
29+ }
30+ }
You can’t perform that action at this time.
0 commit comments