Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enigma: Export private keys #5321

Closed
CRtEurope opened this issue Jun 13, 2016 · 16 comments
Closed

Enigma: Export private keys #5321

CRtEurope opened this issue Jun 13, 2016 · 16 comments

Comments

@CRtEurope
Copy link

CRtEurope commented Jun 13, 2016

When I export my own key then the public key is exported only. Not the private key. Is there a chance to export the private key too, for example, for importing it into Thunderbird or something?

Master-branch
PHP7

@alecpl
Copy link
Member

alecpl commented Jun 13, 2016

Not possible at the moment. Need to implement this first in Crypt_GPG. Then we'd need a dialog for the user so he can select (and be aware of) the export scope.

@alecpl alecpl changed the title Enigma: Export public key only? Enigma: Export private keys Jun 13, 2016
@alecpl
Copy link
Member

alecpl commented Jun 13, 2016

And/Or we could add "Export private key" button in key information frame only where the private key exists.

@CRtEurope
Copy link
Author

That would be really awesome, Alec. Keys are generated server-side and people ask for this possibility.

@alecpl
Copy link
Member

alecpl commented Jun 20, 2016

Implemented.

@alecpl alecpl closed this as completed Jun 20, 2016
@CRtEurope
Copy link
Author

CRtEurope commented Jun 20, 2016

Unfortunately I have to re-open it.
It is not working to export the private key. I get a page with file not found.

file_not_found

Exporting the public key is working.

Master-branch
PHP 7.0
Crypt_GPG-1.4.2

@CRtEurope
Copy link
Author

  thrown in /plugins/enigma/lib/enigma_driver_gnupg.php on line 228
[20-Jun-2016 20:18:05 Europe/Berlin] PHP Fatal error:  Uncaught Error: Call to undefined method Crypt_GPG::exportPrivateKey() in /plugins/enigma/lib/enigma_driver_gnupg.php:228
Stack trace:
#0 /plugins/enigma/lib/enigma_engine.php(1136): enigma_driver_gnupg->export('4ABD47726EEE907...', true)
#1 /plugins/enigma/lib/enigma_ui.php(486): enigma_engine->export_key('4ABD47726EEE907...', Resource id #25, true)
#2 /plugins/enigma/lib/enigma_ui.php(63): enigma_ui->key_export()
#3 /plugins/enigma/enigma.php(420): enigma_ui->init()
#4 /program/lib/Roundcube/rcube_plugin_api.php(491): enigma->preferences_ui()
#5 /index.php(277): rcube_plugin_api->exec_action('plugin.enigmake...')
#6 {main}

@alecpl
Copy link
Member

alecpl commented Jun 20, 2016

You need Crypt_GPG 1.4.2.

@CRtEurope
Copy link
Author

Now I get this error and a blank page after updating with composer:
[20-Jun-2016 21:18:47 Europe/Berlin] PHP Fatal error: Cannot declare class rcube_plugin_api, because the name is already in use in /program/lib/Roundcube/rcube_plugin.php on line 30

@CRtEurope
Copy link
Author

Can be closed. it is working now. Somehow the package mail_mimedecode was missing... Very strange. Installed, restarted apache and memcached, everything is working great...

@ClocxHD
Copy link

ClocxHD commented Aug 23, 2016

I've upgraded to Roundcube 1.2.1, but there is no "Export private button".
Isn't it implemented?
I use Enigma 0.5.

@CRtEurope
Copy link
Author

It is there...

pgp_export

@ClocxHD
Copy link

ClocxHD commented Aug 23, 2016

If i click on the "Export"-Button on the top left side in Settings --> PGP-Keys it directly downloads the public key, i cannot choose.
These are the available Buttons:
Buttons
(Import, Export all and export selection) Both just downloads the public keys.

@CRtEurope
Copy link
Author

What's your Crypt_GPG version?

@ClocxHD
Copy link

ClocxHD commented Aug 23, 2016

My Crypt_GPG-Version: 1.4.20-1ubuntu3.1

@CRtEurope
Copy link
Author

Install composer and use composer to install it. Take a look in the root folder of roundcube, there is a description how to use it.

@ClocxHD
Copy link

ClocxHD commented Aug 23, 2016

This is the line in my composer.json:
"pear-pear.php.net/crypt_gpg": "~1.4.2"
(I downloaded the roundcube.tar.gz today, so the composer.json should be up to date.)
Composer says that all packages are up to date

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants