HOWTO: Transfer OTR private keys from Kopete to Pidgin (or Pidgin to Kopete)

Kopete and Pidgin store their OTR private keys in a very similar format, the only difference that I encountered was the protocol name which is “Jabber” for Kopete and “prpl-jabber” for Pidgin

Here’s the locations of the two private key files.

Pigin
~/.purple/otr.private_key

Kopete
~/.kde4/share/apps/kopete_otr/privkeys

Open both files in a text editor and copy the relevant account/key sections from one to the other making sure you modify the protocol name (I’ve highlighted it in bold below) as appropriate.

(privkeys
(account
(name "example@example.com")
(protocol prpl-jabber)
(private-key
dsa
(p #008BB7770F0CC0E70E61F1190534B5496F21281F9DD4C88EFA0BBD44E2798B2392CDE31466299C7CCF94489ED7B7640C022BB15E566AEE85B453173496854BF60A23F3138F0673D58F70F9FE1FACDF712B34F0A2C58089BED58E56131BF4018B226CC95196BA0227435E25E34282A9FE4DB429B223FC26E6A9EC307B712FC650BB#)
(q #009C14D60398C1EBB3AE3DEE2CAFABCBEAEB331E5F#)
(g #5411C13B82E1E987B825330BBEEAE2A9EA4EBC21966EB749EA3A8F692D42C78E7D8D049DA6CB0E1874160D8D896D968D901FD4B8595786EABB8884373C10701957C3144878D1E0D1176E7AA82559A9EF6BB6780B0FD9DC96D8E906F75E2060985DC06F5FEA7704DC696D2CA5D5142E88C5C793B952ECD7BD5B230607335E6CE6#)
(y #7F05F8659DA598A07EF87543652B0FC4E93EE43517C40916AFE42208E8FF5008DBE1855A3A2295293C4E0FE3A0017E4BADCD19BADDA03AB01B43DF4E9E89C3560D36729167B39F6D1C687B447506C129C45F69794B7890094962043083876A9349092B094CBBDEF8A60D935A8039E47917415A1802C5FB9D7B428A2472A760E0#)
(x #510C3EC4630C54546FF8835FAE828F5348BAF8E5#)
)
)
)

Comments are currently closed.