Keychain and gpg-agent not getting along

I have a problem with gpg-agent. I have been using the Funtoo keychain tool for a while, for my SSH keys exclusively. Works flawlessly - I log in, I call keychain, I type in my passphrases, and it caches my keys. Never get prompted for a passphrase during SSH connection attempts.
GPG is a different story. I have a GPG key, and I occasionally en- and decrypt files with it. So far so good. I also found out how to get keychain to cache the GPG key. It also picks up my gpg-agent, which is started as per the wiki entry (except that instead of putting it systemwide in /etc/profile.d, I put it in Openbox's ~/.config/openbox/environment file, which is where the SSH agent stuff is supposed to go as well.
Gpg-agent seemingly launches fine, it exports its environment variables just fine:
$ echo $GPG_AGENT_INFO
/tmp/gpg-3faT29/S.gpg-agent:2352:1
$ cat .gnupg/gpg-agent.env
GPG_AGENT_INFO=/tmp/gpg-3faT29/S.gpg-agent:2352:1
There's only one gpg-agent process running:
$ ps aux|grep gpg-agent
luser 2352 0.0 0.0 16252 1184 ? Ss 00:00 0:00 gpg-agent --daemon --write-env-file /home/stijn/.gnupg/gpg-agent.env
luser 3411 0.0 0.0 9276 1016 pts/0 S+ 00:16 0:00 grep gpg-agent
Keychain picks that up as well:
$ keychain --eval
* keychain 2.7.1 ~ http://www.funtoo.org
* Found existing ssh-agent: 2346
SSH_AUTH_SOCK=/tmp/ssh-YhDgORoL2345/agent.2345; export SSH_AUTH_SOCK;
SSH_AGENT_PID=2346; export SSH_AGENT_PID;
* Found existing gpg-agent: 2352
GPG_AGENT_INFO=/tmp/gpg-3faT29/S.gpg-agent:2352:1; export GPG_AGENT_INFO;
* Known ssh key: /home/stijn/.ssh/id_rsa-amalthea
* Known ssh key: /home/stijn/.ssh/id_rsa-athena
* Known ssh key: /home/stijn/.ssh/id_rsa-zeus
* Known ssh key: /home/stijn/.ssh/id_rsa-mnemosyne
* Known gpg key: [8 digit hex key]
However, when I open Mutt (or just try to decrypt about any GPG encrypted file), it will prompt me for the passphrase, despite the key already being cached. Passing --use-agent does not help (I also set that in ~/.gnupg/gpg.conf).
The bizarre thing being, of course, that the keychain-cached key did not get picked up, but if I enter my passphrase into the prompt I get the first time I call gpg, it does seem to get cached - I can open mutt, decrypt files, etc., it will all use that cached key.
Any tips? I get the feeling I'm missing something, but couldn't find what exactly.
Last edited by .:B:. (2011-12-06 22:25:27)

Gpg-agent by itself works fine, although I get the feeling that, a bit like sudo, there's an expiration date on the cached key - it seems I need to type the passphrase again after a few hours or so.
Either way, I'd love to get this working with keychain.

Similar Messages

  • Safari and yahoo mail not getting along

    Safari and Yahoo Mail don't seem to be getting along this past month

    Hi powerbook1701!
    It is a shame...Yahoo has always been bad with Safari...I think most people here keep a copy of Firefox/Camino for cases like this when webdesigners don't make their pages compatible with Safari. It's not much of a problem anymore but there are still a few sites depending on where you surf...
    Actually the reason I started using Mail is because the standard Yahoo mail wouldn't display custom fonts, etc. on Mac. At that time not even with Firefox for Windows. But I'm glad that I switched because I enjoy using Mail much more that Yahoo's webmail which by the way was never good at searching...
    Oops this sounds like Yahoo bashing!!! It's not meant to be...just letting you know other people have the same issues you're experiencing...
    Reg

  • Adobe GoLive and Safari 5 not getting along

    Hello.
    I was trying to update a web page on a site that I'd created with Adobe GoLive version 8.x. Every time I tried opening the site files in GoLive, I got a crash. I decided to quit out of Safari 5 which was still running in the background to see if that would help. It didn't. I found a partial workaround to getting into my page, and it doesn't seem to be Safari's fault.
    I guess more than a Safari question, is are there any good, current Web Site Authoring packages for the Mac out there? I really don't feel like paying $200 for upgrading to Adobe's Dreamweaver software.
    If this is the wrong forum for this question, I apologize. Please direct me to where I should post this question.
    Thanks for your help.

    HI,
    Not sure if this will help but worth a try.
    Open a Finder window. Select your Home Folder in the Sidebar on the left. On the right open the Library folder then the Preferences folder.
    Look for a file similar to this: com.adobegolive.plist (not exact wording but close)
    Move that file to the Trash and restart your Mac. Try opening the site in GoLive now.
    Carolyn

  • Apple Mail and Aol Imap not getting along

    I'm not a computer genius so I'm having a really hard time figuring this out and I hope someone out there can help me. I have the most current version of Leopard on my Macbook. I've always used my AOL Imap account on this computer and it's always worked just fine. The past few days, it's not working at all. When I try to send an email, it doesn't look like it's going to go through, then it goes to my outbox. But then I find out that the email actually did send. I am getting NO incoming mail whatsoever. But I'm getting it on my iphone just fine. I've changed my port number from 993 to 587 to see if that works, and it didn't. I've even completely deleted the aol imap account and then reset it up. Still didn't work. Please help.

    Welcome To  Discussions yayyay!
    Are these the settings you are using?
    -Account Type: IMAP
    -Incoming Mail Server: imap.aol.com
    -Outgoing Mail Server: smtp.aol.com:Your AOL Screenname Here
    -Server Port: 587
    ali b

  • Gmail and Mavericks are not getting along.

    Gmail used to work so nicely with iMail, but ever since the upgrade to Mavericks, things started going all screwy. I know that Apple released an update for the problem, but that hasn't worked.
    I checked for other software updates and there are no new ones. Everything is up to date.
    I have been able to zero in on the problem: Incoming emails are not an issue. They show up on all devices. I if open an email on Mail and delete it, it syncs with the other devices as well.
    The problem stems from what I do if the email is opened or deleted on a different device. Thats when Mail on the Mac won’t sync. It will still show the email with the blue icon showing it’s new and unopened, and it will stay in the inbox even if I sent it to trash anywhere else.
    Has anyone else run in to this problem, and if so, have you been able to fix it?
    All help is appreciated.
    Thank you!

    Its really depends what kind of computer your using, is it old? If you are using a PC, in some cases it really does matter which port you plug your ipod into. Try every port (cept for back ones).
    Its weird because people usually see this when they Jailbreak their ipod and try to upgrade it, you get bricked by the new software which supposedly locks hacked components of the ipod, but since its happening to your nano too, then its either itunes or its the computer.
    If you are on a PC look in my computer and see if your ipod comes up when you plug it in. It should just come up in the window for a miminal amount of time. If it does then its your itunes.
    What kind of question is that? always download new versions! they can contain vital information for your ipod.

  • Macs and USB Devices Not Getting Along

    I am posting this incase I'm not the only one.
    I have noticed this issue with my Intel iMac as well as my PPC iMac
    Both are running the latest versions of OSX 10.4.9
    This is regarding USB connectivity and the effect connected devices have on the system.
    USB Setup
    1 7 Port usb hub
    1 Palm Dock Connected via hub
    1 iPod Dock Connected to 2nd USB Port on iMac
    1 ScanSnap connected via hub - POWER OFF
    Bluetooth Apple Mouse & Keyboard
    1 TomTom 910 connected via hub - Connected to dock but power is off.
    1 Canon IP90 Connects via Bluetooth - POWER OFF
    This is what happens.
    If one of the following usb devices is connected, boot times can be extended with the system "pausing" at the Gray screen before Gray Apple Logo appears.
    iPod
    Palm TX
    Once the OS boots Missing Sync's Menu Bar status application will not load, will have to manual load app.
    If I disconnect these devices and reboot boot time is normal with no "pause" and missing sync loads normally.
    Also i Have noticed my Apple keyboard will take longer to pair during boot with or without these devices connected.
    iMac will not power down as scheduled with these usb devices connected if the system falls asleep with them connected.
    Normally the iMac will wake itself up at 11pm to shut down. If my iPod or Palm is connected it will not. It will only shut down via schedule if it is awake when scheduled time is reached.
    iMac G5 2 Ghz 1.5 Ram 400 Gig HD & iBook G4 1.33 12   Mac OS X (10.4.6)  

    So just an updated to my original post. I have been working with tech support for Missing Sync. There is a known issue with a menu bar application that comes with their software. It seems when more than 1 or 2 usb devices are connected this menu bar app doesn't load correctly... or at all.
    According to them.. one of their techs actually spoke with a Apple Engineer at WWDC this week regarding the issue. According to this Apple Engineer there is a known issue with OS X and USB handling. Apparently the OS can "freak out" if certain devices are connected during boot.
    No other specifics where given, and who knows if this is Missing Syncs attempt at shelling off responsibility to Apple. However, I am inclined to believe it as I have noticed that my iMac Intel or PowerPC will take a significantly longer time booting if my iPod or Palm Pilot is docked during boot. I've also noticed I can't reset my PRAM when these devices are connected.
    I hope apply addresses these issues, seems kinda crazy its gotten this far being that USB devices are the primary method for expanding your Mac's abilities.
    iMac G5 2 Ghz 1.5 Ram 400 Gig HD & iBook G4 1.33 12   Mac OS X (10.4.6)  

  • IOS 7 and Photoshop touch not getting along well.

    Hello adobe people, is anyone else experiencing the total instability of Photoshop touch for iPad on the new iOS 7?  for some reason each time I launch he app it cycles to the screen where you decide between new projects or existing, when a project is selected, or not, the app crashes/minimizes causing a re-start of the app and way to much frustration.

    I am having the same problem. It was working fine then I tried to synch 4 n4w files from the iPhone to CC and it crashes when I try to open it now.
    IOS 7.1
    iphone 5S

  • KDE4.1 ssh-agent and gpg-agent

    Suddenly after an update of kdeworkspace my ssh-agent and gpg-agent have stopped working. Does anyone else have also this problem?
    Regards,

    I've also had this problem, although I don't know the exact time it stopped working as I have not had to use my laptop to ssh for a while.
    Everything seems to get created OK - the socket is created:
    [daren@daren_laptop env]$ ll /tmp/gpg-MZi0kX/
    total 0
    srwxr-xr-x 1 daren daren 0 2009-01-18 10:06 S.gpg-agent
    and the env variable points to it:
    [daren@daren_laptop env]$ env | grep GPG
    GPG_AGENT_INFO=/tmp/gpg-MZi0kX/S.gpg-agent:4508:1
    and the agent is running on the correct pid:
    [daren@daren_laptop env]$ ps axf | grep gpg-agent
    4508 ? Ss 0:00 gpg-agent --daemon
    4902 pts/0 R+ 0:00 \_ grep gpg-agent
    If i run ssh-add from the command line, I get this:
    [daren@daren_laptop env]$ ssh-add
    Could not open a connection to your authentication agent.
    [daren@daren_laptop env]$
    I'm not that clued up on using the agent - it's always "just worked" after adding the script to ~/.kde4/env, but I'm kind of stuck now.  There was another post about issues with KDE 4.1 and the agents, but they resolved theirs by doing what I've had setup for a while now.

  • How do I move files from my iMac to my Airport without getting 'AirPort can not be modified' message. File sharing is enabled and I'm not getting asked for a password. Thanks

    How do I move files from my iMac to my Airport without getting 'AirPort can not be modified' message. File sharing is enabled and I'm not getting asked for a password. Thanks

    What OS are you running.. this is usually only a problem in Mavericks.
    If so I recommend you mount the hard disk manually..
    Use Go, Connect to server.
    Type in the IP address if static.. eg
    AFP://10.0.1.1
    Or the name.. but you will have issues unless the name is short, no spaces and pure alphanumeric.. if you are using bad names.. fix it by a full factory reset in airport utility and give it all names that comply to the above.
    Type in
    AFP://TCname.local Where TCname is replaced with the actual name.
    You will be asked for the password the first time which is public unless you changed it.. please remember to save this in the keychain.
    Copy files then to a new directory you create on the TC.. do not place files inside the TM sparsebundle. Nor directly under the main directory.

  • I restored my iphone and i am not getting all of my photo stream photos  i am missing about 900 photos out of 1000 please help

    i restored my iphone and i am not getting the rest of my photos from my photo stream  i am missing about 900 out of 1000 photos  it only shows 147 photos  it is not downloading for more   i was sure i backed it up to icloud i had 1.7 free gb and it still says 1.7 gb free but i am not getting it still

    With respect, there is no way that upgrading your iPhone will erase the photos on your computer. WHy not tell us what happened exactly, nd how it relates to iPhoto. If, along the way, you can tell us what version of iPhoto, that might help to.
    Regards
    TD

  • Username and password do not get applied to WS Invocations in PS3 project

    I am running into a situation where username and password do not get applied to WS Invocations in PS3 project I am deploying using config plan, this is used to work correctly in PS2. Did the syntax for the deployment configuration plans for PS3 BPM have changed?
    This is the error that I am getting from the BPM soa_server.log file:
    <Feb 9, 2011 1:04:16 PM PST> <Error> <oracle.wsm.resources.enforcement> <WSM-07501> <Failure in Oracle WSM Agent processRequest, category=security, function=agent.function.client, application=default, composite=SpringWorkflow, modelObj=ActivityService, policy=oracle/wss_username_token_client_policy, policyVersion=null, assertionName={http://schemas.oracle.com/ws/2006/01/securitypolicy}wss-username-token.
    oracle.wsm.common.sdk.WSMException: WSM-00015 : The user name is missing.
    Caused by: oracle.fabric.common.PolicyEnforcementException: WSM-00015 : The user name is missing.
    at oracle.fabric.common.AbstractSecurityInterceptor.processResult(AbstractSecurityInterceptor.java:239)
    at oracle.fabric.common.BindingSecurityInterceptor.processRequest(BindingSecurityInterceptor.java:95)
    I enabled ws logging for incoming and outgoing P6 web service requests, I see that the BPM server is not making an outgoing webservice call, looking more into the log file from soa_server.log I see that the exception is a PolicyEnforcementException confirming my suspicion that the username and password from the deployment config plan are not getting applied at runtime. This is used to work correctly in PS2. Any suggestions?
    Config-plan:
    <reference name="ActivityService">
    <!--Add search and replace rules for the binding properties-->
    <binding type="ws">
    <attribute name="port">
    <replace>http://xmlns.oracle.com/Primavera/P6/WS/Activity/V1#wsdl.endpoint(ActivityService/ActivityPort)</replace>
    </attribute>
    <attribute name="location">
    <replace>http://x.x.x.x:7001/p6ws/services/ActivityService?wsdl</replace>
    </attribute>
    <property name="weblogic.wsee.wsat.transaction.flowOption">
    <replace>WSDLDriven</replace>
    </property>
    <property name="oracle.webservices.auth.username">
    <replace>admin</replace>
    </property>
    <property name="oracle.webservices.auth.password">
    <replace>admin</replace>
    </property>
    </binding>
    </reference>
    Deployment Log from Jdev:
    [04:05:01 PM] ---- Deployment started. ----
    [04:05:01 PM] Target platform is (Weblogic 10.3).
    [04:05:01 PM] Running dependency analysis...
    [04:05:01 PM] Building...
    [04:05:11 PM] Deploying profile...
    [04:05:11 PM] Updating revision id for the SOA Project 'SpringWorkflow.jpr' to '1.0'..
    *[04:05:11 PM] Copying file:/E:/dev/bpm11g/springdemo/SpringWorkflow/SpringWorkflow_cfgplan.xml to soaconfigplan.xml*
    [04:05:11 PM] Adding soaconfigplan.xml to archive.
    [04:05:11 PM] Wrote Archive Module to E:\dev\bpm11g\springdemo\SpringWorkflow\deploy\sca_SpringWorkflow_rev1.0.jar
    [04:05:11 PM] Deploying sca_SpringWorkflow_rev1.0.jar to partition "default" on server soa_server1 [x.x.x.x:8001]
    [04:05:11 PM] Processing sar=/E:/dev/bpm11g/springdemo/SpringWorkflow/deploy/sca_SpringWorkflow_rev1.0.jar
    [04:05:11 PM] Adding sar file - E:\dev\bpm11g\springdemo\SpringWorkflow\deploy\sca_SpringWorkflow_rev1.0.jar
    [04:05:11 PM] Preparing to send HTTP request for deployment
    [04:05:11 PM] Creating HTTP connection to hostx.x.x.x port:8001
    [04:05:13 PM] Sending internal deployment descriptor
    [04:05:13 PM] Sending archive - sca_SpringWorkflow_rev1.0.jar
    [04:05:15 PM] Received HTTP response from the server, response code=200
    [04:05:15 PM] Successfully deployed archive sca_SpringWorkflow_rev1.0.jar to partition "default" on server soa_server1 [x.x.x.x:8001]
    [04:05:15 PM] Elapsed time for deployment: 14 seconds
    [04:05:15 PM] ---- Deployment finished. ----

    We should take a look at the log files to see what's really going on but if you haven't done anything with the installation yet then "reinstalling" is very easy.
    In the directory where you launched the jar file, you should find a directory named "crx-quickstart". Simply rename this directory to "crx-quickstart.old" and restart the jar file. Your new environment will be ready in a couple of minutes.  Keep the old directory and look into the [your directory]\crx-quickstart\logs directory for details on your original problem.

  • Excise rate and value is not getting defaulted from the purchase order

    Hi all,
    While capturing excise invoice , the excise rate and value is not getting defaulted from the purchase order and in Excise Item Tab BED,AED,ECS is Zero at both header as well as item level for only one material in STO process and if we are doing same process taking other material all things are coming perfectly and We are maintaining condition with respect to vendor,plant and material combination.Any input related to this will be helpfull and rewarded.
    Regards
    Vishal

    Hi,
    Follow STO Process for this;
    1.Create a vendor for the company code of receiving plant, using account group: 0007 using T-Code XK01.
    2. Assign this vendor to Delivering plant
    Go to XK02 >Purchasing view>Extras>Add. Purchasing data>Plant
    3. Create internal customer with the sales area of the vendor. Go To XD01
    4. In pricing procedure determination relevant to STO, assign document Pricing Procedure and customer pricing procedure appropriate for STO to get the pricing in the invoice.
    5. Maintain condition records for the relevant pricing condition.
    6. Some more setting for STO: Go to MM> Purchasing > Purchase Order > Set up STO > define shipping data for plants > Go to Receiving plant >assign customer here & Supplying SA (for billing) to Receiving plant here
    7. Go to MM > Purchasing > Purchase Order > Set up STO > define shipping data for plants > Go to Supplying plant and assign the sales area of receiving plant.
    8. Go to MM > Purchasing > Purchase Order > Set up STO > assign delivery Type & Checking rule
    Assign the delivery type to document type. In this case, Delivery type NLCC is assigned to Document type NB
    9. Go to MM> Purchasing > Purchase Order > Set up STO > Assign document Type, One step Procedure, Under delivery tolerance
    Assign the document type NB to supplying plant and receiving plant
    10. After all settings, Create the STO using T-Code: ME21N and maintain pricing conditions of freight and Save.
    11. In supplying plant Maintain condition record in sales using VK11 the same will flow in receiving plant when referring the OBD no during MIGO.
    10. Create Delivery: VL10G
    12. Picking, PGI: VL02N
    13. Billing: VF01
    Save the document and its done
    14. J1IIN - Outgoing Excise Invoice
    15. MIGO - Goods Receipt against outbound Delivery
    16. J1IEX - Capture & Post Excise Invoice
    Rgs

  • Bought a new Ipod touch and the WiFi does not connect.  Tried Reset and total Restore, does not connect to Router on DHCP, tried Static manually and still can not get it to connect even though it registers as connected.

    Bought a new Ipod touch and the WiFi does not connect.  Tried Reset and total Restore, does not connect to Router on DHCP, tried Static IP, Subnet, Router and DNS manually and still can not get it to connect even though it registers as connected.  Using Airport for router, latest firmware, no problems with Iphone 4 or Macbook Pro or any other internet devices.  After total Restore (factory settings) tried again, showed connected to router, but does not display "check" next to router but little rotating icon even though the wifi range signal shows connected at full strength and it says it is connected.  Just can't seem to get it to generate an IP.  Any solutions other than turning it on and off again?  Not a Merry Christmas morning.

    Ok, so, a couple of things:  Denisefromwaleska and I have the exact same size/type/color iPod.  Now wishing I'd bought the black one maybe...
    Second, Airport is an Express and I have a second one that I carry with me when I travel.  Tried to connect my Airport Express to the internet and could not although the iPod did recognize the router and tried to connect to the internet for some time, unlike my previous problem.  Updated firmware on my travel router, still could not connect to the internet.  Going to try to set up a manual Static IP on the travel router here in a few and conect through it although I predict the problem will persist. Back on the Christmas Present Airport Express router, it is back in play and working fine for all devices save the iPod. 
    Thanks again for all your help, hopefully I can get a solution in place soon,

  • HT4352 How can I get Home Sharing turned on my Apple TV if I have lost my remote control and my remote apps on my ipad and iphone can not get access to my apple tv, only my itunes.

    How can I get Home Sharing turned on my Apple TV if I have lost my remote control and my remote apps on my ipad and iphone can not get access to my apple tv, only my itunes.

    You can't, you will need to get a new remote.

  • HI. I have itunes 10.6.1.7. When I goto movies i am not able to add and when I click on add file to library and select the file and add its not getting added. When i goto Library it says  that movies I add are in library.Which I cant add

    HI. I have itunes 10.6.1.7. When I goto movies i am not able to add and when I click on add file to library and select the file and add its not getting added. When i goto Library it says "feature films and home movies you add to itunes appear in movies in your iTunes library. To play a movie, just double click it". And below are two options for Downloading movies from store and rent movies. Please help.

    I get the exactly the same problem with win 7, i rang apple support who suggested i try another machine/or create another account on my machine???? why should i, stupid ipad 3rd gen is now sitting here un syncable, apple support ....tut tut very poor support, its a shame im out of the 7 day period otherwise this ipad would be going straight back, older versions of itunes worked fine, some one must know a fix for this??

Maybe you are looking for

  • Hotkey problem in Lenovo 3k N200

    Hi, I have my lovely laptop since 4 years Long time, so some keys crashed. I replace keyboard for new one, but new has different scheme of hotkeys (I was unable to find keyboard with correct hotkeys). Please tell me, where I can download hotkey drive

  • Video in cellular

    Hello, Is there a way to see the linksys´s cameras in my phone (BlackBerry or Iphone) all of the cameras in the same time or at least more of 2. Thanks,

  • Poor architecture-wise solution?

    I can't understand why a tool makes it obrigatory to bind view to databases! I recently moved from NetBeans to Studio Creator in hopes for quicker development but was stunned with the impossibility of binding a simple dataTable to a ArrayList, for ex

  • Why is my email address coming up in my text messages?

    Hi, Ever since I updated to IOS7 - my text messages are now coming up on the other side as my email address instead of my name or phone number. This was bad for me in business since my personal email is unknown, and my replies were "who is this?" emb

  • Condition on Document type lavel

    Dear all, in my return PO i don't want to pick all condition from PIR(Purchase info record) can i make changes fpr perticular document type.if yes than how plz??? As, when i am making return PO  than conditon should not pick from pricing procedure. V