Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #69211 > unrolled thread

SSL: DECRYPTION_FAILED_OR_BAD_RECORD_MAC

Started bytade.ankur@gmail.com
First post2014-03-27 09:40 -0700
Last post2014-04-01 14:36 -0700
Articles 3 — 2 participants

Back to article view | Back to comp.lang.python


Contents

  SSL: DECRYPTION_FAILED_OR_BAD_RECORD_MAC tade.ankur@gmail.com - 2014-03-27 09:40 -0700
    Re:SSL: DECRYPTION_FAILED_OR_BAD_RECORD_MAC Dave Angel <davea@davea.name> - 2014-03-27 21:47 -0400
    Re: SSL: DECRYPTION_FAILED_OR_BAD_RECORD_MAC tade.ankur@gmail.com - 2014-04-01 14:36 -0700

#69211 — SSL: DECRYPTION_FAILED_OR_BAD_RECORD_MAC

Fromtade.ankur@gmail.com
Date2014-03-27 09:40 -0700
SubjectSSL: DECRYPTION_FAILED_OR_BAD_RECORD_MAC
Message-ID<94cfb444-8c5d-4b2c-b08c-29170991d02b@googlegroups.com>
hei , 

I am a newcome to Python. 

I am trying to create a python script which will connect to an SSL URL and using the HEAD request will get the status of URL. 

For one the link I am getting following error

[SSL: DECRYPTION_FAILED_OR_BAD_RECORD_MAC] decryption failed or bad record mac (_ssl.c:589)

I am using python on windows. 

Following is the code snippet

def checkURLStatusSecure(testhostname,urlsinatest):
    global conn, url, res

    for url in urlsinatest:
        conn = HTTPSConnection(testhostname,'443')
        conn.request('HEAD', url)
        res = conn.getresponse()
        print('|***https://' + testhostname + url + '| %s | %s |' % (res.status, res.reason))
        res.close()
        conn.close()

Any idea why I am gtting the above mentioned error. 

Any help will be appreciable 

Python version in 3.4

[toc] | [next] | [standalone]


#69235

FromDave Angel <davea@davea.name>
Date2014-03-27 21:47 -0400
Message-ID<mailman.8646.1395971106.18130.python-list@python.org>
In reply to#69211
 tade.ankur@gmail.com Wrote in message:
> 
> hei , 
> 
> I am a newcome to Python. 
> 
> I am trying to create a python script which will connect to an SSL URL and using the HEAD request will get the status of URL. 
> 
> For one the link I am getting following error
> 
> [SSL: DECRYPTION_FAILED_OR_BAD_RECORD_MAC] decryption failed or bad record mac (_ssl.c:589)

And why do you omit the rest of the error?  

> 

> 


-- 
DaveA

[toc] | [prev] | [next] | [standalone]


#69525

Fromtade.ankur@gmail.com
Date2014-04-01 14:36 -0700
Message-ID<9e61da23-3510-4289-aba9-3ec2f9167253@googlegroups.com>
In reply to#69211
On Thursday, March 27, 2014 5:40:52 PM UTC+1, tade....@gmail.com wrote:
> hei , 
> 
> 
> 
> I am a newcome to Python. 
> 
> 
> 
> I am trying to create a python script which will connect to an SSL URL and using the HEAD request will get the status of URL. 
> 
> 
> 
> For one the link I am getting following error
> 
> 
> 
> [SSL: DECRYPTION_FAILED_OR_BAD_RECORD_MAC] decryption failed or bad record mac (_ssl.c:589)
> 
> 
> 
> I am using python on windows. 
> 
> 
> 
> Following is the code snippet
> 
> 
> 
> def checkURLStatusSecure(testhostname,urlsinatest):
> 
>     global conn, url, res
> 
> 
> 
>     for url in urlsinatest:
> 
>         conn = HTTPSConnection(testhostname,'443')
> 
>         conn.request('HEAD', url)
> 
>         res = conn.getresponse()
> 
>         print('|***https://' + testhostname + url + '| %s | %s |' % (res.status, res.reason))
> 
>         res.close()
> 
>         conn.close()
> 
> 
> 
> Any idea why I am gtting the above mentioned error. 
> 
> 
> 
> Any help will be appreciable 
> 
> 
> 
> Python version in 3.4


Hei Dave, 

Thanks for taking your time and replying.  

I am getting only the mentioned on the command prompt. Is it possible set some traces  and get more information about the errors.

Regards

Ankur

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web