Skip to content

Trim scheme and path ( and username:password ) from args for supporting cert checks straight from the URL#23

Merged
genkiroid merged 2 commits intogenkiroid:mainfrom
k1LoW:trim-scheme-and-path
Nov 30, 2022
Merged

Trim scheme and path ( and username:password ) from args for supporting cert checks straight from the URL#23
genkiroid merged 2 commits intogenkiroid:mainfrom
k1LoW:trim-scheme-and-path

Conversation

@k1LoW
Copy link
Contributor

@k1LoW k1LoW commented Nov 29, 2022

Hi @genkiroid.

I want to check certs straight from the URL.
So trim scheme and path ( and username:password ) from args.

$ go run ./cmd/cert/main.go example.com
DomainName: example.com
IP:         2606:2800:220:1:248:1893:25c8:1946
Issuer:     DigiCert TLS RSA SHA256 2020 CA1
NotBefore:  2022-03-14 09:00:00 +0900 JST
NotAfter:   2023-03-15 08:59:59 +0900 JST
CommonName: www.example.org
SANs:       [www.example.org example.net example.edu example.com example.org www.example.com www.example.edu www.example.net]
Error:


$ go run ./cmd/cert/main.go https://example.com
u.Host: example.com
DomainName: example.com
IP:         93.184.216.34
Issuer:     DigiCert TLS RSA SHA256 2020 CA1
NotBefore:  2022-03-14 09:00:00 +0900 JST
NotAfter:   2023-03-15 08:59:59 +0900 JST
CommonName: www.example.org
SANs:       [www.example.org example.net example.edu example.com example.org www.example.com www.example.edu www.example.net]
Error:


$

@genkiroid
Copy link
Owner

@k1LoW Thanks!

@genkiroid genkiroid merged commit 1284b47 into genkiroid:main Nov 30, 2022
@k1LoW k1LoW deleted the trim-scheme-and-path branch November 30, 2022 03:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants