GNOME Bugzilla – Bug 509283
Commandline program to access keyring
Last modified: 2012-06-29 14:37:23 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.
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.
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.
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.
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
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...
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.
(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.
Chris, could you freshen this up. Also, not sure if this is now crufty with latest gnome release.
chris, stef, any progress here? please update the status of this. thanks.
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.
removing 2.24 target status. this is definitely a nice to have, but from my POV this won't block 2.24.
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.
*** Bug 561582 has been marked as a duplicate of this bug. ***
*** Bug 572533 has been marked as a duplicate of this bug. ***
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.
What changes need to be made to the gnome-keyring-query.c (that's attached to this bug) to get it committed?
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