{"id":16754796,"url":"https://github.com/anchore/quill","last_synced_at":"2026-03-10T18:11:05.970Z","repository":{"id":61766814,"uuid":"444165245","full_name":"anchore/quill","owner":"anchore","description":"Simple mac binary signing from any platform","archived":false,"fork":false,"pushed_at":"2026-03-09T21:12:40.000Z","size":1153,"stargazers_count":491,"open_issues_count":15,"forks_count":16,"subscribers_count":12,"default_branch":"main","last_synced_at":"2026-03-09T23:50:06.374Z","etag":null,"topics":["apple","binary","codesign","codesigning","darwin","hacktoberfest","mac","macho","notarization","notarize","signing"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/anchore.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2022-01-03T18:43:13.000Z","updated_at":"2026-03-09T21:24:48.000Z","dependencies_parsed_at":"2023-11-28T14:26:24.107Z","dependency_job_id":"17b2ce93-4023-4c32-bfde-de6e472c46cb","html_url":"https://github.com/anchore/quill","commit_stats":{"total_commits":342,"total_committers":10,"mean_commits":34.2,"dds":0.2748538011695907,"last_synced_commit":"16611043eda885a5e12ffd8c2ea61bb3e2de9b39"},"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/anchore/quill","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anchore%2Fquill","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anchore%2Fquill/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anchore%2Fquill/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anchore%2Fquill/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/anchore","download_url":"https://codeload.github.com/anchore/quill/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anchore%2Fquill/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30346649,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-10T15:55:29.454Z","status":"ssl_error","status_checked_at":"2026-03-10T15:54:58.440Z","response_time":106,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["apple","binary","codesign","codesigning","darwin","hacktoberfest","mac","macho","notarization","notarize","signing"],"created_at":"2024-10-13T03:06:01.725Z","updated_at":"2026-03-10T18:11:05.963Z","avatar_url":"https://github.com/anchore.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Quill\n\nSimple mac binary signing and notarization from any platform (replacing the `codesign` utility for simple use cases).\n\n![quill-demo](https://user-images.githubusercontent.com/590471/196287753-35f3de6c-cd37-4ec1-a67c-05be5f4ed95b.gif)\n\n```bash\n$ quill sign-and-notarize --p12 [path-to-p12] [path-to-unsigned-binary]\n```\n\n## Installation\n\n```bash\ncurl -sSfL https://get.anchore.io/quill | sudo sh -s -- -b /usr/local/bin\n```\n\n... or, you can specify a release version and destination directory for the installation:\n\n```\ncurl -sSfL https://get.anchore.io/quill | sudo sh -s -- -b \u003cDESTINATION_DIR\u003e \u003cRELEASE_VERSION\u003e\n```\n\n\n## Usage\n\nFirst you need to download the signing private key and certificate from Apple (this is in the form of a \".p12\" file). \n\n```bash\n# run on **any platform** to sign the binary\n\n$ export QUILL_SIGN_P12=[path-to-p12]         # can also be base64 encoded contents instead of a file path\n$ export QUILL_SIGN_PASSWORD=[p12-password]\n\n$ quill sign [path/to/binary]\n```\n\n**Note**: The signing certificate must be issued by Apple and the full certificate chain must be available at \nsigning time. See the section below on [\"Attaching the full certificate chain\"](#attaching-the-full-certificate-chain) if you do not wish to rely on the \n[Apple intermediate and root certificates](https://www.apple.com/certificateauthority/) embedded into the Quill binary.\n\nAfter signing you can notarize the binary against Apple's notary service:\n\n```bash\n$ export QUILL_NOTARY_KEY=[path-to-private-key-file-from-apple]   # can also be base64 encoded contents instead of a file path\n$ export QUILL_NOTARY_KEY_ID=[apple-private-key-id]               # e.g. XS319FABCD\n$ export QUILL_NOTARY_ISSUER=[apple-notary-issuer-id]             # e.g. a1234b5-1234-5f5d-b0c8-1234bedc5678\n\n$ quill notarize [path/to/binary]\n```\n\n...or you can sign and notarize in one step:\n\n```bash\n$ quill sign-and-notarize [path/to/binary]\n```\n\nHere's an example of using quill with goreleaser:\n```yaml\n# .goreleaser.yml\nbuilds:\n  - binary: my-app\n    goos:\n      - darwin\n    goarch:\n      - amd64\n      - arm64\n    hooks:\n      post:\n        # The binary is signed and notarized when running a production release, but for snapshot builds notarization is\n        # skipped and only ad-hoc signing is performed (not cryptographic material is needed).\n        #\n        # note: environment variables required for signing and notarization (set in CI) but are not needed for snapshot builds\n        #    QUILL_SIGN_P12, QUILL_SIGN_PASSWORD, QUILL_NOTARY_KEY, QUILL_NOTARY_KEY_ID, QUILL_NOTARY_ISSUER\n        - cmd: quill sign-and-notarize \"{{ .Path }}\" --dry-run={{ .IsSnapshot }} --ad-hoc={{ .IsSnapshot }} -vv\n          env:\n            - QUILL_LOG_FILE=/tmp/quill-{{ .Target }}.log\n```\n\n### Attaching the full certificate chain\n\nIn order to pass notarization with Apple you must use:\n\n1. A signing certificate that is issued by Apple\n2. Have the full certificate chain available at signing time\n\nWithout the full chain, Apple will reject the notarization request with the following error:\n```json\n{\n  \"issues\": [\n    {\n      \"severity\": \"error\",\n      \"code\": null,\n      \"message\": \"The signature of the binary is invalid.\",\n      \"docUrl\": \"https://developer.apple.com/documentation/security/notarizing_macos_software_before_distribution/resolving_common_notarization_issues#3087735\"\n    },\n    {\n      \"severity\": \"error\",\n      \"code\": null,\n      \"message\": \"The signature does not include a secure timestamp.\",\n      \"docUrl\": \"https://developer.apple.com/documentation/security/notarizing_macos_software_before_distribution/resolving_common_notarization_issues#3087733\"\n    }\n  ]\n}\n```\n\nQuill can attach the full certificate chain at signing time with the Apple root and intermediate certificates embedded \ninto the Quill binary (obtained from [Apple](https://www.apple.com/certificateauthority/) directly). However, an\nalternative to this approach is to attach the full certificate chain to your P12 file:\n\n```bash\n# run on a mac if you want to use certs from your keychain.\n# otherwise this will embed any matching Apple certs that are found within Quill into the P12 file.\n\n$ export QUILL_P12_PASSWORD=[p12-password]\n\n$ quill p12 attach-chain [path-to-p12-from-apple]\n\n# a new P12 file was created with the suffix `-with-chain.p12`\n```\n\nAt this point you can use `quill p12 describe` to confirm the full certificate chain is attached.\n\n\n## Commands\n\n- `sign [binary-file]`: sign a mac executable binary\n- `notarize [binary-file]`: notarize a signed a mac binary with Apple's Notary service\n- `sign-and-notarize [binary-file]` sign and notarize a mac binary\n- `submission list`: list previous submissions to Apple's Notary service\n- `submission logs [id]`: fetch logs for an existing submission from Apple's Notary service\n- `submission status [id]`: check against Apple's Notary service to see the status of a notarization submission request\n- `describe [binary-file]`: show the details of a mac binary\n- `extract certificates [binary-file]`:  extract certificates from a signed mac binary\n- `p12 attach-chain [p12-file]`: attach the full Apple certificate chain into a p12 file (MUST run on a mac with keychain access)\n- `p12 describe [p12-file]`: describe the contents of a p12 file\n\n\n## Configuration\nSearch locations: `.quill.yaml`, `quill.yaml`, `.quill/config.yaml`, `~/.quill.yaml`, `~/quill.yaml`, `$XDG_CONFIG_HOME/quill/config.yaml`\n\n```yaml\nlog:\n  # suppress logging output (env var: \"QUILL_LOG_QUIET\")\n  quiet: false\n  \n  # error, warn, info, debug, trace (env var: \"QUILL_LOG_LEVEL\")\n  level: \"info\"\n  \n  # file to write all loge entries to (env var: \"QUILL_LOG_FILE\")\n  file: \"\"\n```\n\n## Why make this?\n\nThe mac `codesign` utility is great, but it's not available on all platforms. For cross-platform toolchains like golang\nthis can get painful in subtle ways. Goreleaser is a great \"one-shot\" release solution, but requiring running on a mac\njust for the signing step now forces the reset of your build steps to work on a mac as well -- and since this is part\nof the release process, it needs to work in CI. This is a problem since, [due to licensing reasons, the default mac\nrunner for github actions cannot have docker installed by default](https://github.com/actions/runner-images/issues/17#issuecomment-614726536).\nThis means that you need to resort to installing docker on a mac in CI first before getting started, which can take\nupwards of 20 minutes.\n\nUnlike docker, which inherently needs to run on a linux host (docker on a mac is a VM), there is nothing inherently\nmac-specific about signing a binary. This tool enables already cross-platform toolchains to run the signing step on\nany platform.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanchore%2Fquill","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanchore%2Fquill","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanchore%2Fquill/lists"}