test(worker): the HTTPS client refuses a self-signed server certificate (in-process rustls server, rcgen dev-dependency)
This commit is contained in:
1 parent
c9dab637e4
commit
a604c07f50
3 files changed
+286
-3
No files matched your search
@@ -34,6 +34,14 @@ crc32fast = { version = "1.4", optional = true }
|
||||
# Already in the tree through png: used by the iCCP-bomb fixture only.
|
||||
flate2 = { version = "1.1", optional = true }
|
||||
|
||||
[dev-dependencies]
|
||||
# tests/tls.rs: an in-process TLS server with a self-signed certificate that the
|
||||
# worker's client must refuse (certificate validation proven active, R4.11).
|
||||
# rustls is already in the tree through ureq, the same features; rcgen is the
|
||||
# rustls project's certificate generator, ring provider like the client.
|
||||
rustls = { version = "0.23", default-features = false, features = ["ring", "std", "tls12"] }
|
||||
rcgen = { version = "0.14", default-features = false, features = ["ring"] }
|
||||
|
||||
# The worker owns I/O (it is the process boundary), so the core's disallowed_methods lint is
|
||||
# off here. unsafe stays denied crate-wide; the libwebp FFI and the prctl call carry a local
|
||||
# #[allow(unsafe_code)] with a SAFETY comment each (forbid would not allow the local override).
|
||||
|
||||
Reference in new issue
Block a user