id_rsa not detected as x-pem-key
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
seahorse-plugins (Ubuntu) |
Confirmed
|
Low
|
Unassigned |
Bug Description
Binary package hint: seahorse-plugins
I'm trying to make gnome-keyring work as my SSH key forwarding agent properly but I've run into trouble with how my public key is detected. It seems to be the case that gnome-keyring will automagically recognize any file matching ~/.ssh/id_rsa or ~/.ssh/id_dsa if they are properly detected as supported mime types. Regardless of why I'm trying to do this, the fact is that ~/.ssh/id_rsa is detected as type application/
I've tried my best to track down the problem but everything seems to be configured correctly. The shared-mime-info stuff for seahorse is found in /usr/share/
<mime-type type="applicati
<magic priority="90">
<match type="string" value="-----BEGIN RSA PRIVATE KEY-----" offset="0"/>
<match type="string" value="-----BEGIN DSA PRIVATE KEY-----" offset="0"/>
<match type="string" value="-----BEGIN ENCRYPTED PRIVATE KEY-----" offset="0"/>
</magic>
</mime-type>
My private key file starts exactly as that mime-type definition says it should. Here's an octal dump of the top of that file:
$ od -a id_rsa
0000000 - - - - - B E G I N sp R S A sp P
0000020 R I V A T E sp K E Y - - - - - nl
0000040 P r o c - T y p e : sp 4 , E N C
0000060 R Y P T E D nl D E K - I n f o :
0000100 sp D E S - E D E 3 - C B C , 2 7
0000120 B C 9 D 4 5 E E 5 2 3 3 E D nl nl
...
I even copied the string out of the XML file and pasted it at the top of my id_rsa file. This had no affect on how the file is detected:
$ xdg-mime query filetype id_rsa
application/
An extra test:
$ cat > test
-----BEGIN RSA PRIVATE KEY-----<ctrl-D>
username@
application/
What exactly is broken about this mime type rule? If the mime type were detected properly then it would automatically get associated with seahorse if I try to open it. I'd also be able to import it into seahorse. This bugs me.
Changed in seahorse-plugins (Ubuntu): | |
importance: | Undecided → Low |
Changed in seahorse-plugins (Ubuntu): | |
status: | New → Confirmed |
This still affects me in Karmic, on a fresh installation with a different SSH key file.
Is there anyone who has Seahorse actually recognizing their SSH key? If so can that person please comment on what mime type their key file is detected as?