diff --git a/.changie.yaml b/.changie.yaml index 56c797e..eb74a73 100755 --- a/.changie.yaml +++ b/.changie.yaml @@ -12,6 +12,7 @@ custom: label: Issue Number type: int minInt: 0 + optional: true # maxInt: is also possible - key: Author label: Author Github Name @@ -30,12 +31,12 @@ custom: - lock - nil kinds: - - Added - - Changed - - Deprecated - - Removed - - Fixed - - Security + - label: Added + - label: Changed + - label: Deprecated + - label: Removed + - label: Fixed + - label: Security replacements: - path: main.go find: 'const version = ".*"' diff --git a/CHANGELOG.md b/CHANGELOG.md index deca337..db25b80 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,19 +3,15 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html), -and is generated by [Changie](https://github.com/miniscruff/changie). - -## v1.1.1 - 2021-01-03 +and is generated by [Changie](https://github.com/miniscruff/changie).## v1.1.2 - 2023-05-15 +### Added +* :sparkles: print system cert list ## v1.1.1 - 2021-01-03 ### Fixed -* :bug: Fix conditionnal template into .changie.yml (by RouxAntoine) - -## v1.1.0 - 2021-01-03 +* :bug: Fix conditionnal template into .changie.yml (by RouxAntoine)## v1.1.0 - 2021-01-03 ### Added * :sparkles: Add version replacement from changie to file main.go - - ## v1.0.0 - 2020-12-30 ### Added diff --git a/changes/v1.1.2.md b/changes/v1.1.2.md new file mode 100644 index 0000000..ca532e0 --- /dev/null +++ b/changes/v1.1.2.md @@ -0,0 +1,3 @@ +## v1.1.2 - 2023-05-15 +### Added +* :sparkles: print system cert list \ No newline at end of file diff --git a/main.go b/main.go index 4a61ff3..73caccf 100644 --- a/main.go +++ b/main.go @@ -5,7 +5,7 @@ import ( "os" ) -const version = "1.1.1" +const version = "1.1.2" func main() { if contains(os.Args[1:], "-v") { diff --git a/printSystemCert.go b/printSystemCert.go new file mode 100644 index 0000000..b7e8fd3 --- /dev/null +++ b/printSystemCert.go @@ -0,0 +1,17 @@ +package main + +import ( + "crypto/x509" + "fmt" + "time" +) + +func main() { + start := time.Now() + certs, err := x509.SystemCertPool() + end := time.Now() + if err != nil { + panic(err) + } + fmt.Printf("found %d certs in %v\n", len(certs.Subjects()), end.Sub(start)) +}