Use maxsize in generate_adhoc_ssl_pair

maxint is not available on Python 3.x because integers have no maximum
size on 3.x.

The test I added fails because of a bug in pyopenssl.