store | blogs | forums | twitter | facebook | wiki | downloads | support portal
Atomic Secure Linux
It is currently Sat Aug 17, 2019 1:49 pm

» Feed - Atomicorp

All times are UTC - 5 hours [ DST ]




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Project Gamera gpg key
Unread postPosted: Thu Oct 23, 2014 6:51 am 
Offline
Long Time Forum Regular
Long Time Forum Regular

Joined: Thu Dec 09, 2004 11:19 am
Posts: 2321
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.

_________________
--------------------------------
<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>


Top
 Profile  
Reply with quote  
 Post subject: Re: Project Gamera gpg key
Unread postPosted: Thu Oct 23, 2014 10:36 am 
Offline
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin

Joined: Wed Dec 31, 1969 8:00 pm
Posts: 8329
Location: earth
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.


Top
 Profile  
Reply with quote  
 Post subject: Re: Project Gamera gpg key
Unread postPosted: Thu Oct 23, 2014 11:34 am 
Offline
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin

Joined: Wed Dec 31, 1969 8:00 pm
Posts: 8329
Location: earth
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


Top
 Profile  
Reply with quote  
 Post subject: Re: Project Gamera gpg key
Unread postPosted: Fri Oct 24, 2014 9:17 am 
Offline
Long Time Forum Regular
Long Time Forum Regular

Joined: Thu Dec 09, 2004 11:19 am
Posts: 2321
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>


Top
 Profile  
Reply with quote  
 Post subject: Re: Project Gamera gpg key
Unread postPosted: Fri Oct 24, 2014 10:48 am 
Offline
Long Time Forum Regular
Long Time Forum Regular

Joined: Thu Dec 09, 2004 11:19 am
Posts: 2321
Scott,

Can you tell me why --homedir is being specified in pg-master.sh please?

Code:
gpg --homedir $PGHOME/ --keyring pg.pub --secret-keyring pg.sec


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?

_________________
--------------------------------
<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>


Top
 Profile  
Reply with quote  
 Post subject: Re: Project Gamera gpg key
Unread postPosted: Fri Oct 24, 2014 12:14 pm 
Offline
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin

Joined: Wed Dec 31, 1969 8:00 pm
Posts: 8329
Location: earth
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.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

» Feed - Atomicorp

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group