From f357dc5e0e2591f59eb93d27c3a1688b16910a9b Mon Sep 17 00:00:00 2001 From: Chen Zhiwei Date: Sun, 15 Aug 2021 12:20:55 +0800 Subject: [PATCH] add tip to view csr with openssl --- pkg/cert/show.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkg/cert/show.go b/pkg/cert/show.go index 64b5a54..a1a51bd 100644 --- a/pkg/cert/show.go +++ b/pkg/cert/show.go @@ -102,6 +102,11 @@ func GetCertRequestInfo(bytes []byte) ([]map[string]string, error) { }) } + // a certificate request can contain too many tings, no need to reinvent the wheel + result = append(result, map[string]string{ + "\nCheck more info with": "openssl req -noout -text -in csr-filepath", + }) + return result, nil }