Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/bep/macosnotarylib
- Owner: bep
- License: mit
- Created: 2022-08-29T13:34:44.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2022-09-07T10:54:56.000Z (about 2 years ago)
- Last Synced: 2024-10-11T05:43:56.520Z (about 1 month ago)
- Topics: apple, golang, notarization
- Language: Go
- Homepage:
- Size: 1.31 MB
- Stars: 8
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
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)
```