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

Crash in key generation with m2crypto #812

Open
tomato42 opened this issue Feb 23, 2023 · 0 comments
Open

Crash in key generation with m2crypto #812

tomato42 opened this issue Feb 23, 2023 · 0 comments
Labels
bug unintented behaviour in tlsfuzzer code

Comments

@tomato42
Copy link
Member

Bug Report

System Information

Type Version/Name
Operating System Name Ubuntu
Operating System Version 22.04
Python version 3.8.16
tlslite-ng version 0.8.0a43
tlsfuzzer revision 0e48d57

Problem description

Failure in key generation during self-tests

Describe how to reproduce the problem

(if the issue is interaction with some other system/library/application,
please provide relevant version numbers or commit IDs of it too.)

Steps to reproduce the behaviour:

  1. schedule a lot of runs with m2crypto installed

Expected behaviour

no failures

Include errors or backtraces

Traceback (most recent call last):
  File "/home/runner/work/tlsfuzzer/tlsfuzzer/tests/test_tlsfuzzer_messages.py", line 1509, in test_generate_with_mismatched_CR_TLS1_3

    priv_key = generateRSAKey(2048)
  File "/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/tlslite/utils/keyfactory.py", line 36, in generateRSAKey
    return OpenSSL_RSAKey.generate(bits)
  File "/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/tlslite/utils/openssl_rsakey.py", line 118, in generate
    key.rsa = m2.rsa_generate_key(bits, 3, f)
M2Crypto.RSA.RSAError: Unknown error in function rsa_generate_key.

Additional context

Add any other context about the problem here.

@tomato42 tomato42 added the bug unintented behaviour in tlsfuzzer code label Feb 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug unintented behaviour in tlsfuzzer code
Projects
None yet
Development

No branches or pull requests

1 participant