Affected by GO-2024-2441
and 1 other vulnerabilities
GO-2024-2441 : The DES/3DES cipher was used as part of the TLS protocol by installation tools in github.com/karmada-io/karmada
GO-2024-2817 : karmada vulnerable to arbitrary code execution via a crafted command in github.com/karmada-io/karmada
Discover Packages
github.com/karmada-io/karmada
pkg
util
lifted
pubkeypin
package
Version:
v1.7.0-alpha.1
Opens a new window with list of versions in this module.
Published: May 31, 2023
License: Apache-2.0
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Hash calculates the SHA-256 hash of the Subject Public Key Information (SPKI)
object in an x509 certificate (in DER encoding). It returns the full hash as a
hex encoded string (suitable for passing to Set.Allow).
Set is a set of pinned x509 public keys.
NewSet returns a new, empty PubKeyPinSet
Allow adds an allowed public key hash to the Set
CheckAny checks if at least one certificate matches one of the public keys in the set
Empty returns true if the Set contains no pinned public keys.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.