Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,9 @@ end
start_line = "==========\n"
certs_pem = split(file_content, start_line; keepempty=false)

cert = certs_pem[2]

x509_cert = X509Certificate(cert)
# Mozilla's root list changes order over time, so use the first root whose subject has an OU
pems = filter(p -> occursin("-----BEGIN CERTIFICATE-----", p), certs_pem)
x509_cert = first(c for c in Iterators.map(X509Certificate, pems) if occursin("/OU=", String(c.subject_name)))

@test occursin("/C=", String(x509_cert.subject_name))
@test occursin("/OU=", String(x509_cert.subject_name))
Expand Down
Loading