#NEWLINE# def check_upload_date_for_heartbleed( self , cert_item ) : #NEWLINE# #INDENT# '\n        alert when a cert was uploaded pre-heartbleed.\n        ' #NEWLINE# upload = cert_item . config . get ( 'upload_date' , None ) #NEWLINE# if upload : #NEWLINE# #INDENT# upload = parser . parse ( upload ) #NEWLINE# heartbleed = parser . parse ( HEARTBLEED_DATE ) #NEWLINE# if ( upload < heartbleed ) : #NEWLINE# #INDENT# notes = 'Cert was uploaded {0} days before heartbleed.' . format ( ( heartbleed - upload ) . days ) #NEWLINE# self . add_issue ( 10 , 'Cert may have been compromised by heartbleed.' , cert_item , notes = notes )