#NEWLINE# @ staticmethod #NEWLINE# def create_credentials( path ) : #NEWLINE# #INDENT# '\n        Create PKI credentials for TLS access to libvirtd.\n\n        Credentials are not signed by the host CA. This only allows\n        unverified access but removes the need to transfer files\n        between the host and the guest.\n        ' #NEWLINE# ca = RootCredential . initialize ( ca , b'CA' ) #NEWLINE# ca_file = path . child ( AUTHORITY_CERTIFICATE_FILENAME ) #NEWLINE# NodeCredential . initialize ( path , ca , uuid = 'client' ) #NEWLINE# ca_file . moveTo ( path . child ( 'cacert.pem' ) ) #NEWLINE# path . child ( 'client.key' ) . moveTo ( path . child ( 'clientkey.pem' ) ) #NEWLINE# path . child ( 'client.crt' ) . moveTo ( path . child ( 'clientcert.pem' ) )