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

Handshake error #116

Closed
rockwotj opened this issue Oct 30, 2017 · 3 comments
Closed

Handshake error #116

rockwotj opened this issue Oct 30, 2017 · 3 comments

Comments

@rockwotj
Copy link

File "/usr/local/lib/python2.7/dist-packages/tlslite/tlsconnection.py", line 308, in handshakeClientCert
    for result in handshaker:
  File "/usr/local/lib/python2.7/dist-packages/tlslite/tlsconnection.py", line 324, in _handshakeClientAsync
    for result in self._handshakeWrapperAsync(handshaker, checker):
  File "/usr/local/lib/python2.7/dist-packages/tlslite/tlsconnection.py", line 1777, in _handshakeWrapperAsync
    for result in handshaker:
  File "/usr/local/lib/python2.7/dist-packages/tlslite/tlsconnection.py", line 472, in _handshakeClientAsyncHelper
    serverHello.tackExt):
  File "/usr/local/lib/python2.7/dist-packages/tlslite/tlsconnection.py", line 837, in _clientRSAKeyExchange
    encryptedPreMasterSecret = publicKey.encrypt(premasterSecret)
  File "/usr/local/lib/python2.7/dist-packages/tlslite/utils/rsakey.py", line 151, in encrypt
    c = self._rawPublicKeyOp(m)
  File "/usr/local/lib/python2.7/dist-packages/tlslite/utils/pycrypto_rsakey.py", line 36, in _rawPublicKeyOp
    m = self.rsa.encrypt(c, None)[0]
  File "/usr/local/lib/python2.7/dist-packages/Crypto/PublicKey/RSA.py", line 390, in encrypt
    raise NotImplementedError("Use module Crypto.Cipher.PKCS1_OAEP instead")
NotImplementedError: Use module Crypto.Cipher.PKCS1_OAEP instead
@tomato42
Copy link
Contributor

tomato42 commented Nov 1, 2017

you do not have pycrypto installed but rather pycryptodome which is not a drop-in replacement for the former

@rockwotj
Copy link
Author

rockwotj commented Nov 1, 2017

Ah, thanks!

1 similar comment
@rockwotj
Copy link
Author

rockwotj commented Nov 1, 2017

Ah, thanks!

@rockwotj rockwotj closed this as completed Nov 1, 2017
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

2 participants