Skip to content

Latest commit

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

Nitrite

Go Report CardGo Reference

A library for verifying AWS Nitro Enclaveattestations for Go.

Usage

It's fairly simple to use it, so here's an example:

import (
"bytes""github.com/hf/nitrite""time"
)
funcverifyAttestation(attestation []byte) error {
res, err:=nitrite.Verify(
bytes.NewReader(attestation),
nitrite.VerifyOptions{
CurrentTime: time.Now(),
})
ifnil!=err {
returnerr
}
returnnil
}

This package includes the Nitro Enclave Root CA certificates.

It's recommended you explicitly calculate the SHA256 sum of the DefaultRootCA string and match it according to the AWS documentation at the start of your application. Alternatively, you can supply your own copy of the root CA.

License

Copyright © 2021 Stojan Dimitrovski. Licensed under the MIT License. See LICENSE for more information.

About

Easily verify Nitro Enclave attestations with Go.

Resources

Stars

13 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages