Include:Abuild-keygen: Difference between revisions

From Alpine Linux
(commented out obsolete information)
(fixed the command updated the help message as per current version)
Line 1: Line 1:
For abuild a public/private rsa key pair is needed. The <code>abuild-keygen</code> command from {{pkg|abuild}} package generates and configures the security keys.
For abuild a public/private rsa key pair is needed. The <code>abuild-keygen</code> command from {{pkg|abuild}} package generates and configures the security keys.


{{Cmd|$ doas abuild-keygen -a -i}}
{{Cmd|$ abuild-keygen -a -i}}
Options:
* '''-a, --append'''  Set PACKAGER_PRIVKEY=<generated key> in abuild.conf
* '''-i, --install'''  Install public key into /etc/apk/keys using doas/sudo
* '''-n'''  Non-interactive. Use defaults
* '''    --kernel '''        Generate a key for kernel modules
* ''' -b, --numbits [BITS]''' The size of the private key to generate in bits.
* '''-q'''  Quiet mode
* '''-h'''  Show this help


'''abuild-keygen options'''
The public key should be distributed and installed into {{Path|/etc/apk/keys}} on the alpine box that will install the packages.  The private key, when created by <code>abuild</code>, is installed into {{Path|~/.abuild/abuild.conf}}. This basically means that the main developer's public keys should be in {{Path|/etc/apk/keys}} on all Alpine boxes.


* '''-a'''  Set PACKAGER_PRIVKEY=<generated key> in abuild.conf
* '''-i'''  Install public key into /etc/apk/keys using sudo
* '''-h'''  Show this help
* '''-n'''  Non-interactive. Use defaults
* '''-q'''  Quiet mode
<!--
<!--
==== Creating keys manually ====
==== Creating keys manually ====
Line 25: Line 28:
{{cmd|openssl rsa -in ''emailaddress.priv'' -pubout -out /etc/apk/keys/''emailaddress''}}
{{cmd|openssl rsa -in ''emailaddress.priv'' -pubout -out /etc/apk/keys/''emailaddress''}}


The public key should be distributed and installed into {{Path|/etc/apk/keys}} on the alpine box that will install the packages.  The private key, when created by <code>abuild</code>, is installed into {{Path|~/.abuild/$something.rsa}}. This basically means that the main developer's public keys should be in {{Path|/etc/apk/keys}} on all Alpine boxes.
-->
-->

Revision as of 17:27, 13 March 2025

For abuild a public/private rsa key pair is needed. The abuild-keygen command from abuild package generates and configures the security keys.

$ abuild-keygen -a -i

Options:

  • -a, --append Set PACKAGER_PRIVKEY=<generated key> in abuild.conf
  • -i, --install Install public key into /etc/apk/keys using doas/sudo
  • -n Non-interactive. Use defaults
  • --kernel Generate a key for kernel modules
  • -b, --numbits [BITS] The size of the private key to generate in bits.
  • -q Quiet mode
  • -h Show this help

The public key should be distributed and installed into /etc/apk/keys on the alpine box that will install the packages. The private key, when created by abuild, is installed into ~/.abuild/abuild.conf. This basically means that the main developer's public keys should be in /etc/apk/keys on all Alpine boxes.