feature: print system cert list
This commit is contained in:
parent
30ef6d73a1
commit
20677f4eca
@ -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 = ".*"'
|
||||
|
12
CHANGELOG.md
12
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
|
||||
|
3
changes/v1.1.2.md
Normal file
3
changes/v1.1.2.md
Normal file
@ -0,0 +1,3 @@
|
||||
## v1.1.2 - 2023-05-15
|
||||
### Added
|
||||
* :sparkles: print system cert list
|
2
main.go
2
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") {
|
||||
|
17
printSystemCert.go
Normal file
17
printSystemCert.go
Normal 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))
|
||||
}
|
Loading…
Reference in New Issue
Block a user