After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 509283 - Commandline program to access keyring
Commandline program to access keyring
Status: RESOLVED INCOMPLETE
Product: gnome-keyring
Classification: Core
Component: general
git master
Other All
: Normal enhancement
: 2.28
Assigned To: GNOME keyring maintainer(s)
GNOME keyring maintainer(s)
: 561582 572533 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2008-01-14 05:00 UTC by Jon Phillips
Modified: 2012-06-29 14:37 UTC
See Also:
GNOME target: ---
GNOME version: Unversioned Enhancement


Attachments
Gnome-Keyring-Query CLI script (1.44 KB, application/x-gzip)
2008-01-14 05:02 UTC, Jon Phillips
Details

Description Jon Phillips 2008-01-14 05:00:30 UTC
Hi all, I've been needing a commandline program to access my keys so that I can use gnome-keyring similar to how keychain works on mac os x, so that I can store all my passwords in this gnome-keyring.

I'm hopeful that a small commandline program like this could be included in an upcoming gnome-keyring so that myself and others can use gnome-keyring from the commandline:

http://gentoo-wiki.com/HOWTO_Use_gnome-keyring_to_store_SSH_passphrases

Here is a similar one:

http://blogs.sun.com/chrisg/entry/ssh_add_meets_gnome_keyring

I'm attaching the first example with an update and a Makefile. Let me know if we can push this further into gnome-keyring.
Comment 1 Jon Phillips 2008-01-14 05:02:10 UTC
Created attachment 102792 [details]
Gnome-Keyring-Query CLI script

It still needs to be fixed to work with the latest ABI/API, but I mainly want to see the interest level.
Comment 2 Stef Walter 2008-01-14 05:20:50 UTC
Yes, this seems to be a real need in gnome-keyring (the latest versions have builtin SSH support, but that's an aside). 

The tool or tools will need to end up exposing not only the password functionality but also the encryption keys and certificates part of gnome-keyring.
Comment 3 Jon Phillips 2008-01-15 06:19:00 UTC
Ok, can you take a look at the script attached and give pointers on updates. Then, where should it go in the source code, or rather what would it take to get this in as a patch?

I think just super basic support is great.
Comment 4 Jon Phillips 2008-01-15 06:21:56 UTC
I'm also adding Chris Gerhard to this because he wrote a script to do the same, but its under the SUN CDDL. I think his script is better...Chris, would you possibly consider relicensing yours and submitting it here for possible inclusion with gnome-keyring...that would be ideal! 

Then, we can have commandline access to gnome-keyring-daemon!

Sweet!


http://blogs.sun.com/chrisg/entry/more_ssh_add_gnome_keyring
Comment 5 Jon Phillips 2008-01-15 06:24:56 UTC
Also, I'm trying to bring KOSTER into this, if I can track down his email address:

http://gentoo-wiki.com/HOWTO_Use_gnome-keyring_to_store_SSH_passphrases

He is the one who originally created the code I sent in...
Comment 6 W. Michael Petullo 2008-01-15 11:36:07 UTC
See bug #155681 for a historical reference to a similar effort, including some code. This previous effort had a problem in that it broke gnome-keyring's ACL system.
Comment 7 chris.gerhard 2008-01-15 13:45:38 UTC
(In reply to comment #4)
> I'm also adding Chris Gerhard to this because he wrote a script to do the same,
> but its under the SUN CDDL. I think his script is better...Chris, would you
> possibly consider relicensing yours and submitting it here for possible
> inclusion with gnome-keyring...that would be ideal! 
> 
> Then, we can have commandline access to gnome-keyring-daemon!
> 
> Sweet!
> 
> 
> http://blogs.sun.com/chrisg/entry/more_ssh_add_gnome_keyring
> 

I'm entirely happy to have the code released under GPL. I'll add it later in the week when I have some time.
Comment 8 Jon Phillips 2008-05-18 15:34:12 UTC
Chris, could you freshen this up. Also, not sure if this is now crufty with latest gnome release.
Comment 9 André Klapper 2008-06-01 20:48:13 UTC
chris, stef, any progress here? please update the status of this. thanks.
Comment 10 chris.gerhard 2008-06-02 18:38:56 UTC
Sorry. I dropped the ball. I'm checking with people at Sun who know about licensing to see what I have to do, if anything, to re release my code under GPL.
Comment 11 André Klapper 2008-06-19 21:57:16 UTC
removing 2.24 target status. this is definitely a nice to have, but from my POV this won't block 2.24.
Comment 12 Stef Walter 2008-08-17 15:01:15 UTC
gnome-keyring has grown the beginnings of a command line tool. It doesn't do much yet, but it's there to be added to. 
Comment 13 Stef Walter 2009-03-05 03:57:06 UTC
*** Bug 561582 has been marked as a duplicate of this bug. ***
Comment 14 Stef Walter 2009-03-05 04:07:29 UTC
*** Bug 572533 has been marked as a duplicate of this bug. ***
Comment 15 Stef Walter 2012-03-15 09:09:28 UTC
Sadly haven't heard anything more on this. 

I'm trying to make gnome-keyring's bugzilla for actual work/bugs rather than plans and ideas, so I'll close this until someone is ready to actually work on it.
Comment 16 Taylor Braun-Jones 2012-05-02 20:33:49 UTC
What changes need to be made to the gnome-keyring-query.c (that's attached to this bug) to get it committed?
Comment 17 Stef Walter 2012-06-29 14:37:23 UTC
libsecret has a tool called 'secret-tool' which does exactly the same thing. libsecret is replacing libgnome-keyring.

http://git.gnome.org/browse/libsecret/tree/tool/secret-tool.c