Commit b476b05
committed
Ensure only NOOP hostname verifier is used for TLS
Because of Signering API using non-standard certificates for establishing TLS connection,
i.e. enterprise certificates (virksomhetssertifikat).
Apache Http Client changed behavior in v5.6, where it is not enough to
configure your own HostnameVerifier. To avoid the verification which is
built-in the JDK SSL stack, one must explicitly configure this policy to
HostnameVerificationPolicy.CLIENT.
https://lists.apache.org/thread/xycs1swxpdc4g3255ms0p1kshbl3ky29 (see
"Compatibility notes")
apache/httpcomponents-client@d89fdfe1 parent 81a836d commit b476b05
2 files changed
Lines changed: 7 additions & 5 deletions
File tree
- lib
- src/main/java/no/digipost/signature/client/core/internal/configuration
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
77 | | - | |
| 77 | + | |
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
82 | | - | |
| 82 | + | |
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
88 | | - | |
| 88 | + | |
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
| |||
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
40 | 41 | | |
41 | 42 | | |
42 | 43 | | |
43 | | - | |
| 44 | + | |
| 45 | + | |
44 | 46 | | |
45 | 47 | | |
46 | 48 | | |
| |||
0 commit comments