lbr38 / repomanager

A web UI to mirror rpm or deb packages repositories.
GNU General Public License v3.0
57 stars 11 forks source link

CHange GPG key on the fly #135

Closed cfouche3005 closed 10 months ago

cfouche3005 commented 10 months ago

Is it possible to change the GPG Key ID in the setting page ? When I change it, my repo fail to build because it can't fing the new gpg key. Does auto generate the new key or do I need to provide it and if i need to provide it, where I can place it ?

lbr38 commented 10 months ago

This is not something that can be done on the fly currently. But if you really want to generate a new key, here's how:

  1. Specify a new key Id in the GPG key Id field (settings page). The key format must be xxxx@yyyy.

  2. Enter the container:

docker exec -it repomanager /bin/bash

  1. Delete pubring and macros files:

rm /var/lib/repomanager/.gnupg/pubring.* /var/lib/repomanager/.rpm/.mcs -f

  1. Refresh Repomanager (F5) and test.
cfouche3005 commented 10 months ago

ok thanks, can you put that into the setting documentation ?

lbr38 commented 10 months ago

This is done: https://github.com/lbr38/repomanager/wiki/08.-Settings#gpg-signing-key

There is another path you need to delete: /home/repo/gpgkeys/* This directory stores the public key for the clients to retrieve.

Closing this issue & adding the "key change on the fly" in my TODO list ;-)