Commit 64d2a0f
authored
Users can easily create a certificate chain for testing using SignedCertificateExtension (#6519)
Motivation:
This is the first of a series of PRs included by
#6516.
Currently, our mTLS tests are not realistic in that:
- Certificate chains aren't verified
- We set TLS configurations to not verify the peer, which means in
reality there's no point in using mTLS.
For this, I propose that a `SignedCertificate` is introduced. This is a
certificate which is signed by another certificate (another
`SignedCertificate` or `SelfSignedCertificate`). A JUnit `Extension` has
also been introduced so users can easily test this behavior.
In the process, I found that `SelfSingedCertificateNameType` has a typo,
and isn't adding much value. This enum has been removed.
Modifications:
- Introduced `SignedCertificate`, `SignedCertificateExtension`
- `SelfSignedCertificate`, `SelfSignedCertificateExtension` inherits the
newly introduced constructs
- Default behavior has been modified so that all generated certificates
can act as a ca.
- `SelfSingedCertificateNameType` has been removed
Result:
- Users can easily create a certificate chain for testing using
`SignedCertificateExtension`
<!--
Visit this URL to learn more about how to write a pull request
description:
https://armeria.dev/community/developer-guide#how-to-write-pull-request-description
-->1 parent e40f4eb commit 64d2a0f
File tree
10 files changed
+800
-546
lines changed- core/src
- main/java/com/linecorp/armeria/internal/common/util
- test/java/com/linecorp/armeria/server
- it/server/src/test/java/com/linecorp/armeria/server/http
- junit4/src/main/java/com/linecorp/armeria/testing/junit4/server
- junit5/src/main/java/com/linecorp/armeria/testing/junit5/server
10 files changed
+800
-546
lines changedLines changed: 116 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
0 commit comments