feature: print system cert list

This commit is contained in:
RouxAntoine 2023-05-15 11:42:49 +02:00
parent 30ef6d73a1
commit 20677f4eca
Signed by: antoine
GPG Key ID: 098FB66FC0475E70
5 changed files with 32 additions and 15 deletions

View File

@ -12,6 +12,7 @@ custom:
label: Issue Number label: Issue Number
type: int type: int
minInt: 0 minInt: 0
optional: true
# maxInt: is also possible # maxInt: is also possible
- key: Author - key: Author
label: Author Github Name label: Author Github Name
@ -30,12 +31,12 @@ custom:
- lock - lock
- nil - nil
kinds: kinds:
- Added - label: Added
- Changed - label: Changed
- Deprecated - label: Deprecated
- Removed - label: Removed
- Fixed - label: Fixed
- Security - label: Security
replacements: replacements:
- path: main.go - path: main.go
find: 'const version = ".*"' find: 'const version = ".*"'

View File

@ -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/), 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), adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html),
and is generated by [Changie](https://github.com/miniscruff/changie). and is generated by [Changie](https://github.com/miniscruff/changie).## v1.1.2 - 2023-05-15
### Added
## v1.1.1 - 2021-01-03 * :sparkles: print system cert list ## v1.1.1 - 2021-01-03
### Fixed ### Fixed
* :bug: Fix conditionnal template into .changie.yml (by RouxAntoine) * :bug: Fix conditionnal template into .changie.yml (by RouxAntoine)## v1.1.0 - 2021-01-03
## v1.1.0 - 2021-01-03
### Added ### Added
* :sparkles: Add version replacement from changie to file main.go * :sparkles: Add version replacement from changie to file main.go
## v1.0.0 - 2020-12-30 ## v1.0.0 - 2020-12-30
### Added ### Added

3
changes/v1.1.2.md Normal file
View File

@ -0,0 +1,3 @@
## v1.1.2 - 2023-05-15
### Added
* :sparkles: print system cert list

View File

@ -5,7 +5,7 @@ import (
"os" "os"
) )
const version = "1.1.1" const version = "1.1.2"
func main() { func main() {
if contains(os.Args[1:], "-v") { if contains(os.Args[1:], "-v") {

17
printSystemCert.go Normal file
View File

@ -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))
}