Security News
38% of CISOs Fear They’re Not Moving Fast Enough on AI
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
github.com/hiddedorhout/cms_ring2
The Qualified Ring uses tokens to exchange information about positions taken by persons towards informations. These tokens are based on, and compatible with CMS (RFC 5652).
Make sure openssl is installed and in PATH.
For timestamping on the signatures, environment variables have to be set to find the configuration to make the timestamp tokens and at it to the signerInfo.
The configuration file MUST be placed in the $EXCHANGE_TS_DIR location as ts.cnf
containing the following information:
# Default section
[default]
default_tsa = default_tsa
[default_tsa]
home = $ENV::EXCHANGE_TS_DIR
serial = $home/serial
digests = sha1
default_policy = 0.0.1.2.36
signer_cert = $ENV::EXCHANGE_TS_CERT
signer_key = $ENV::EXCHANGE_PKEY
For more information see: https://www.openssl.org/docs/manmaster/man1/ts.html
var (
TmpRequestlocation = os.Getenv("EXCHANGE_TS_DIR") + "/tmpreq.tsq"
ConfigFileLocation = os.Getenv("EXCHANGE_TS_DIR") + "/ts.cnf"
)
func InitCMS(data []byte) (*SignedData, error)
InitCMS takes content as input and returns a SignedData structure
type SignerAttributes struct {
SignedAttributes []SignedAttribute
}
SignerAttributes are signed attribute values
type SignedAttribute struct {
AttrType asn1.ObjectIdentifier
AttrValues interface{}
}
SignedAttribute is an attribute to be signed by a signer
func (sd *SignedData) Addsigner(cert x509.Certificate, pkey *rsa.PrivateKey, extraSignedAttributes SignerAttributes, addTimestamp bool)
Addsigner adds a signer to an already build CMS token. If addTimestamp
is TRUE, a timestamp token is added to the unsigned attributes of the signature according to RFC 3161. Else, the unsigned attricutes will stay empty
func (sd *SignedData) Detach()
Detach removes content from the signed data struct to make it a detached signature. This must be called right before BuildCMS()
func (sd *SignedData) BuildCMS() ([]byte, error)
BuildCMS creates the CMS token
FAQs
Unknown package
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.
Security News
Company News
Socket is joining TC54 to help develop standards for software supply chain security, contributing to the evolution of SBOMs, CycloneDX, and Package URL specifications.