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

OverflowError: integer 4692106571 does not fit '32-bit int' #1

Closed
jborbely opened this issue Sep 8, 2018 · 1 comment
Closed

OverflowError: integer 4692106571 does not fit '32-bit int' #1

jborbely opened this issue Sep 8, 2018 · 1 comment

Comments

@jborbely
Copy link
Contributor

jborbely commented Sep 8, 2018

When creating the default self-signed certificate on a Raspberry Pi, version

(mslenv) pi@raspberrypi:~ $ uname -a
Linux raspberrypi 4.14.52-v7+ #1123 SMP Wed Jun 27 17:35:49 BST 2018 armv7l GNU/Linux

, the following exception is raised

(mslenv) pi@raspberrypi:~ $ msl-network start
Traceback (most recent call last):
  File "/home/pi/mslenv/bin/msl-network", line 11, in <module>
    sys.exit(main())
  File "/home/pi/mslenv/lib/python3.5/site-packages/msl/network/cli.py", line 73, in main
    sys.exit(args.func(args))
  File "/home/pi/mslenv/lib/python3.5/site-packages/msl/network/cli_start.py", line 189, in execute
    cryptography.generate_certificate(path=cert, key_path=key, key_password=key_password)
  File "/home/pi/mslenv/lib/python3.5/site-packages/msl/network/cryptography.py", line 196, in generate_certificate
    cert = cert.sign(key, hash_class, default_backend())
  File "/home/pi/mslenv/lib/python3.5/site-packages/cryptography/x509/base.py", line 577, in sign
    return backend.create_x509_certificate(self, private_key, algorithm)
  File "/home/pi/mslenv/lib/python3.5/site-packages/cryptography/hazmat/backends/openssl/backend.py", line 796, in create_x509_certificate
    calendar.timegm(builder._not_valid_after.timetuple())
OverflowError: integer 4692106571 does not fit '32-bit int'

This exception results from the default --years-valid value of 100 being too large for an ARMv7 architecture (which is 32 bit).

@jborbely
Copy link
Contributor Author

jborbely commented Sep 29, 2018

fixed in v0.3.0

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