<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@mike-north/devcert-patched](./devcert-patched.md) &gt; [trustRemoteMachine](./devcert-patched.trustremotemachine.md)

## trustRemoteMachine() function

Trust the remote hosts's certificate on local machine. This function would ssh into the remote host, get the certificate and trust the local machine from where this function is getting called from.

<b>Signature:</b>

```typescript
export declare function trustRemoteMachine(hostname: string, certPath: string, { port, useLocalhostForRemote, renewalBufferInBusinessDays, logger }?: Partial<TrustRemoteOptions>): Promise<{
    mustRenew: boolean;
}>;
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  hostname | <code>string</code> | hostname of the remote machine |
|  certPath | <code>string</code> | file path to store the cert |
|  { port, useLocalhostForRemote, renewalBufferInBusinessDays, logger } | <code>Partial&lt;TrustRemoteOptions&gt;</code> |  |

<b>Returns:</b>

`Promise<{
    mustRenew: boolean;
}>`

