Of course, both files are on the server. Just ssh in and find where lnd is running, the files are somewhere in the data directory. Tls certification + cookie/macaroon is how remote connections are able to access LND's grpc or REST interfaces