#NEWLINE# def build( self ) : #NEWLINE# #INDENT# if ( not self . signKey ) : #NEWLINE# #INDENT# keyPath = ( self . signPathPrefix + '.key' ) #NEWLINE# with open ( keyPath , 'rb' ) as f : #NEWLINE# #INDENT# key = crypto . load_privatekey ( crypto . FILETYPE_PEM , f . read ( ) , self . keyPassword ) #NEWLINE# self . signKey = CertKey ( key , None , None ) #NEWLINE# #UNINDENT# #UNINDENT# if ( not self . signSubj ) : #NEWLINE# #INDENT# crtPath = ( self . signPathPrefix + '.crt' ) #NEWLINE# with open ( crtPath , 'rb' ) as f : #NEWLINE# #INDENT# self . signSubj = crypto . load_certificate ( crypto . FILETYPE_PEM , f . read ( ) ) . get_subject ( ) #NEWLINE# #UNINDENT# #UNINDENT# return self