openssl/openssl

URL Check

Open

#25.739 aberto em 19 de out. de 2024

Ver no GitHub
 (1 comment) (0 reactions) (0 assignees)C (11.262 forks)batch import
help wantedtriaged: feature

Métricas do repositório

Stars
 (30.157 stars)
Métricas de merge de PR
 (Nenhuma PRs mesclada em 30d)

Description

I used OpenSSL 3.0.2 15 Mar 2022 (Library: OpenSSL 3.0.2 15 Mar 2022) Under this version, the test case conversion was successfully completed by executing the certificate format conversion command openssl x509 -inform DER -in fd.der -outform PEM -out fd.pem As a comparison, Golang's crypto/x509 library threw an error for this test case。Error message: parse "https://1kYj\\[@.cfZGv3T_Tr.D?/zrm3/4WA/Ir}BQ/yR]/0[g?<tX=uR?&K'O={d2}&sG?rLi=<}e>": net/url: invalid userinfo This test case contains a malformed URL as the SAN extension value. Golang verifies that the URL is formatted correctly and throws an error. It now appears that openssl x509 does not provide relevant checks. At the same time, the openssl x509 -noout -text -in filename command also successfully parses the extension content and displays the malformed URL Test_Cases.zip Golang openssl

Guia do colaborador