Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/bep/macosnotarylib

Notarize files using Apple's Notary API.
https://github.com/bep/macosnotarylib

apple golang notarization

Last synced: 19 days ago
JSON representation

Notarize files using Apple's Notary API.

Awesome Lists containing this project

README

        

[![Tests on Linux, MacOS and Windows](https://github.com/bep/macosnotarylib/workflows/Test/badge.svg)](https://github.com/bep/macosnotarylib/actions?query=workflow:Test)
[![Go Report Card](https://goreportcard.com/badge/github.com/bep/macosnotarylib)](https://goreportcard.com/report/github.com/bep/macosnotarylib)
[![GoDoc](https://godoc.org/github.com/bep/macosnotarylib?status.svg)](https://godoc.org/github.com/bep/macosnotarylib)

This notarizes files using Apple's [Notary API](https://developer.apple.com/documentation/notaryapi), which means that it can run on any OS.

Note that the archived binary must already be signed, see [testdata/sign.sh](testdata/sign.sh), which unortunate is harder to do outside of a Macintosh. See [buildpkg](https://github.com/bep/buildpkg) for a more complete setup using this library.

See the single test for a "how to use". Running that prints something ala:

```bash
2022/08/30 13:13:39 Submitting helloworld.zip with checksum a53c8738fdd28a3558057c8825f633860846773baae89cf3e0e36f12896393af
2022/08/30 13:13:48 Successfully uploaded file to S3 location https://notary-submissions-prod.s3.us-west-2.amazonaws.com/prod/AROARQRX7CZS3PRF6ZA5L%3A22390004-2418-4edc-bb06-661cca8cf6e0
2022/08/30 13:13:59 [1] Checking status of 22390004-2418-4edc-bb06-661cca8cf6e0
2022/08/30 13:14:12 [2] Checking status of 22390004-2418-4edc-bb06-661cca8cf6e0
2022/08/30 13:14:12 Notarization completed!
--- PASS: TestNotarizeZip (33.55s)
```