-
Notifications
You must be signed in to change notification settings - Fork 0
BuildProcedure
mikedawson edited this page Sep 4, 2014
·
1 revision
- git clone the repo
''To be continued''
1. -bash-3.2$ cd ~
$ mkdir .gnupg
2. Generate gpg key pair (public key and private key)
gpg --gen-key
3. Now that you've generated gpg keys, you can see the list in your key ring by typing:
$ gpg --list-keys
4. To extract or export your public key from your key ring to a text file.
$ gpg --export -a 'Toughra' > RPM-GPG-KEY-TOUGHRA
5. To import your public key to your RPM DB
$ sudo rpm --import RPM-GPG-KEY-TOUGHRA
6. Let's verify the list of gpg public keys in RPM DB:
$ rpm -q gpg-pubkey --qf '%{name}-%{version}-%{release} --> %{summary}\n'7. Final step before the signing, configure your /.rpmmacros file to include the following:
%_signature gpg %_gpg_name Toughra
8. Now, you're ready to sign your custom RPM package
$ rpm --addsign nsmanager-0.0.6-06.noarch.rpm
9. To check the signature, use following option and watch for 'gpg OK'
$ rpm --checksig nsmanager-0.0.6-06.noarch.rpm
- Copy signed rpm to nsmvpn.paiwastoon.net:/var/www/html/repo
- Login to nsmvpn.paiwastoon.net:/var/www/html/repo and run
$ createrepo . -d -s sha