TLS connection parameters

Hi. I have a question regarding below parameters for TLS connections. I am curious as to why we need to specify the certfile/keyfile if these will be on the remote server we are trying to connect to ?

Are these only required when the OpenVas Is Installed on the localhost ?

TLS class to connect, read and write from a remote GVM daemon via TLS secured socket.
Parameters
• timeout (Optional[int]) – Timeout in seconds for the connection.
• hostname (Optional[str]) – DNS name or IP address of the remote TLS server.
• port (Optional[int]) – Port for the TLS connection. Default is 9390.
• certfile (Optional[str]) – Path to PEM encoded certificate file. See python certificates
for details.
• cafile (Optional[str]) – Path to PEM encoded CA file. See python certificates for
details.
• keyfile (Optional[str]) – Path to PEM encoded private key. See python certificates
for details.