Commit b183e8b
authored
Fix AIA/CRL locations encoded as directoryName instead of URI (#130)
* Fix AIA/CRL locations encoded as directoryName instead of URI
AIA accessLocation and CRL distribution point names were always
constructed as X.500 directoryName (GeneralName tag [4]), even when
the value was an HTTP or LDAP URI. Per IWG Profile v1.1 §3.2.12,
the accessLocation value SHOULD point to the OCSP responder as an
HTTP URI (uniformResourceIdentifier, GeneralName tag [6]).
Extract a parseGeneralName() helper that detects URI schemes
(http, https, ldap, ldaps) and encodes them as
uniformResourceIdentifier, falling back to X500Name for
distinguished name values.
* Fix CRL crlIssuer encoding and update test data with URIs
- Keep crlIssuer as directoryName (RFC 5280 §4.2.1.13 requires it)
- Add TYPE check for DistributionPointName: only apply parseGeneralName
for TYPE=0 (fullName), keep X500Name for TYPE=1 (nameRelativeToCRLIssuer)
- Update otherExt.json: use HTTP URIs for ACCESSLOCATION and CRL NAME
per IWG Profile v1.1 §3.2.12, keep ISSUER as DN1 parent 6b8c766 commit b183e8b
File tree
2 files changed
+22
-6
lines changed- src
- main/java/json
- test/resources
2 files changed
+22
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
85 | | - | |
| 85 | + | |
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
| |||
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
117 | | - | |
118 | | - | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
119 | 124 | | |
120 | | - | |
| 125 | + | |
| 126 | + | |
121 | 127 | | |
122 | 128 | | |
123 | 129 | | |
| |||
127 | 133 | | |
128 | 134 | | |
129 | 135 | | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
130 | 146 | | |
131 | 147 | | |
132 | 148 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| |||
0 commit comments