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

PKey() not imported #1091

Closed
nikaro opened this issue Nov 21, 2017 · 0 comments
Closed

PKey() not imported #1091

nikaro opened this issue Nov 21, 2017 · 0 comments

Comments

@nikaro
Copy link

nikaro commented Nov 21, 2017

Hello,

I'm using Ajenti (ajenti-panel==2.1.23) on a fresh isntall of Ubuntu 16.04.3.

When i try to generate a self-signed certificate with ajenti-ssl-gen it says that PKey is not defined.

Replacing

from OpenSSL.crypto import *

by

from OpenSSL.crypto import dump_certificate, dump_privatekey, FILETYPE_PEM, PKey, TYPE_RSA, X509

actually solve the problem.

The bug have been reported upstream (pyca/pyopenssl#715), but it would be nice to have a fix and stick with the good pratice of not doing from […] import *.

Regards.

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

No branches or pull requests

1 participant