36 lines
1.1 KiB
JavaScript
36 lines
1.1 KiB
JavaScript
export const validPublicCertificate = {
|
|
connectionId: "connection-valid-public",
|
|
hostname: "example.test",
|
|
port: 443,
|
|
validation: "success",
|
|
errors: [],
|
|
presentedChain: [
|
|
{ subject: "CN=example.test", sha256: "leaf-valid-public" },
|
|
{ subject: "CN=Example Intermediate", sha256: "intermediate-public" },
|
|
],
|
|
constructedChain: [
|
|
{ subject: "CN=example.test", sha256: "leaf-valid-public" },
|
|
{ subject: "CN=Example Intermediate", sha256: "intermediate-public" },
|
|
{ subject: "CN=Example Root", sha256: "root-public" },
|
|
],
|
|
tls: { version: "TLSv1.3", alpn: "h2" },
|
|
};
|
|
|
|
export const unknownLocalAuthority = {
|
|
connectionId: "connection-unknown-local",
|
|
hostname: "library.village",
|
|
port: 443,
|
|
validation: "failure",
|
|
errors: ["unknown-issuer"],
|
|
presentedChain: [
|
|
{ subject: "CN=library.village", sha256: "leaf-village-library" },
|
|
{ subject: "CN=Village Services CA", sha256: "ca-village-services" },
|
|
],
|
|
constructedChain: [
|
|
{ subject: "CN=library.village", sha256: "leaf-village-library" },
|
|
{ subject: "CN=Village Services CA", sha256: "ca-village-services" },
|
|
],
|
|
tls: { version: "TLSv1.3", alpn: "h2" },
|
|
};
|
|
|