getSKI

command
v0.0.0-...-adbe6fe Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 21, 2024 License: MIT Imports: 14 Imported by: 0

README

getSKI

Output the Subject Key Identifier (SKI) for a specified pem encoded x509 certficate or unencrypted pkcs #1/8 pem encoded private key (EC or RSA). Outputs both the SHA1 and SHA256 hex-encoded SKI.

# Install
go get github.com/gbolo/go-util/getSKI

# Usage Help
getSKI --help
Usage of ./getSKI:
  -pem string
    	path to pem file (supports x509 certs and unencrypted pkcs8/pkcs1 private keys)

# Output Example
getSKI -pem /tmp/server_testServerCert.pem
pem encoded CERTIFICATE
key type: EC (P-384)
 File Path:  /tmp/server_testServerCert.pem
 SKI-sha1:   596b81cdf0fd8c37908e40650f6f94f2518ffa15
 SKI-sha256: 8bdf32b4e12ac909128aff390c12041d2e76bbc4e1b11544bcbf2f66fa23592a

Documentation

Overview

simple tool to get Subject Key Identifier (SKI) in various formats supports pem encoded certificates and pk1/pk8 keys (unencrypted)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL