question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

invalid input defined or SSL error: 'module' object has no attribute 'PROTOCOL_TLSv1_2'

See original GitHub issue

Hey,

I got this error invalid input defined or SSL error: 'module' object has no attribute 'PROTOCOL_TLSv1_2'.

root@localhost:~/Documents/LinkFinder# python linkfinder.py -i https://example.com -d Usage: python linkfinder.py [Options] use -h for help Error: invalid input defined or SSL error: 'module' object has no attribute 'PROTOCOL_TLSv1_2' Regards

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

4reactions
gh0stkeycommented, Nov 3, 2018

Hey,man.I think i have the same problem as you,but i fixed it. You can change the code of linkfinder.py. Original Code:

sslcontext = ssl.SSLContext(ssl.PROTOCOL_TLSv1_2)

...code

response = urlopen(q, context=sslcontext)

After the change of code:

# Support websites that force TLSv1.2

...code

try:
    sslcontext = ssl.SSLContext(ssl.PROTOCOL_TLSv1_2)
    response = urlopen(q, context=sslcontext)
except:
    sslcontext = ssl.SSLContext(ssl.PROTOCOL_TLSv1)
    response = urlopen(q, context=sslcontext)
0reactions
ghost-man01commented, Sep 21, 2022

Hey I’m getting the same issue of sslcontext.

Read more comments on GitHub >

github_iconTop Results From Across the Web

ssl — TLS/SSL wrapper for socket objects — Python 3.11.1 ...
This module provides access to Transport Layer Security (often known as “Secure Sockets Layer”) encryption and peer authentication facilities for network ...
Read more >
'module' object has no attribute 'DTLSv1_METHOD' - Stack ...
Attribute Error: 'module' object has no attribute 'DTLSv1_METHOD'. I'm not sure what Python is providing, but let me show you what OpenSSL ...
Read more >
[Discuss-gnuradio] OOT Module Attribute Error module object ...
The basic reason for the 'object has no attribute' error is that Python's import of your module failed. In the two cases that...
Read more >
AttributeError: 'module' object has no attribute 'SSL_ST_INIT'
This seems to be an error existent in older pyopenssl versions, in combination with changes in other related packages.
Read more >
Testing Guide - OWASP Foundation
ment organizations do not include security testing as part of their ... ed with a coding error root cause and input validation vulnerabil-...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found