golang-cross-build

module
v0.0.45 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 8, 2022 License: MIT

README

golang-cross-build

Cross-platform builds involving golang (and requiring CGO), and build signing. Facilitated using goreleaser.

Sign and Notarize macos Builds

  1. From the Apple Developer Center, generate a new "Apple Distribution" certificate.

  2. You'll need a CSR, generate using OpenSSL (did not work with OpenSSL 3.0.5 on Ubuntu; installed LibreSSL 3.3.6, which worked correctly):

openssl req -newkey rsa:2048 -keyout distribution.key -out distribution.csr
  1. Convert .cer file to a .pem file:
openssl x509 -in distribution.cer -inform DER -out distribution.pem -outform PEM
  1. Convert .pem to .p12:
openssl pkcs12 -export -inkey distribution.key -in distribution.pem -out distribution.p12

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL