I'm trying to use the pg-client.sh and pg-master.sh scripts to automate domain configuration for a couple of Project Gamera boxes.
Unfortunately I've fallen at the first hurdle, in that I can't find the pg.key
From the README
Step 5) Copy /usr/share/project-gamera/pg.key to each client system
So that's fine, I expect it isn't generated automatically for me and I need to do it manually.
But I need some help - I don't have a clue how to do so for this situation.
Is it just gpg --gen-key (with no password)? or what exactly?
And then what? I need to export it (with armour)?
I also notice this in pg-client.sh
# Do we have the gpg key?
gpg --list-key Project > /dev/null 2>&1 || NOKEY=1
This implies that I have to either change that line or use Project somewhere or other when creating/exporting the key?
Sorry to be a dunce.
Project Gamera gpg key
Project Gamera gpg key
--------------------------------
<advert>
If you want to rent a UK-based VPS that comes with friendly advice and support from a fellow ART fan, please get in touch.
</advert>
<advert>
If you want to rent a UK-based VPS that comes with friendly advice and support from a fellow ART fan, please get in touch.
</advert>
-
- Atomicorp Staff - Site Admin
- Posts: 8355
- Joined: Wed Dec 31, 1969 8:00 pm
- Location: earth
- Contact:
Re: Project Gamera gpg key
Right, so when you generate a key, you can enter the "real name". You can also ID a key based off of email address, keyID, etc. Real name ended up being less of a hassle.
-
- Atomicorp Staff - Site Admin
- Posts: 8355
- Joined: Wed Dec 31, 1969 8:00 pm
- Location: earth
- Contact:
Re: Project Gamera gpg key
BTW if you have improvements here shoot us a pull request. Let me know if you need any help sorting that out, git can be a little wacky if you're used to svn or cvs
Re: Project Gamera gpg key
I'll give it a go Thanks.
--------------------------------
<advert>
If you want to rent a UK-based VPS that comes with friendly advice and support from a fellow ART fan, please get in touch.
</advert>
<advert>
If you want to rent a UK-based VPS that comes with friendly advice and support from a fellow ART fan, please get in touch.
</advert>
Re: Project Gamera gpg key
Scott,
Can you tell me why --homedir is being specified in pg-master.sh please?
What I mean is that in a typical install you'd have a ~/.gnupg with the keys and so on in there so no need to specify homedir, keyring etc.
Is the expectation that the cron job won't be run as root or is there some other thing going on?
Can you tell me why --homedir is being specified in pg-master.sh please?
Code: Select all
gpg --homedir $PGHOME/ --keyring pg.pub --secret-keyring pg.sec
Is the expectation that the cron job won't be run as root or is there some other thing going on?
--------------------------------
<advert>
If you want to rent a UK-based VPS that comes with friendly advice and support from a fellow ART fan, please get in touch.
</advert>
<advert>
If you want to rent a UK-based VPS that comes with friendly advice and support from a fellow ART fan, please get in touch.
</advert>
-
- Atomicorp Staff - Site Admin
- Posts: 8355
- Joined: Wed Dec 31, 1969 8:00 pm
- Location: earth
- Contact:
Re: Project Gamera gpg key
It was probably as a backup in case the HOME variable wasnt defined. You can try it without it to see if it works OK. I think modern bash is pretty resilient toward that. That code was probably written on EL4 so its possible that at the time, it didn't work without it.