> Source: https://docs.cyberelements.io/bastion/4.6/Usage/Configuration/EdgeGatewayWindows/GWWindowsManualConfiguration/

# Manual configuration and connection of the Windows Edge Gateway

> **Information**
>
> The instructions on this page also apply to duplicate instances of the Windows Edge Gateway.
> However, you will need to adapt the various references of `IPdivaGateway` to `IPdivaGateway-2` or to any other suffix that has been configured.

> **Prerequisites**
>
> To perform the following operations, you must have administrator rights on the machine.

Place the certificate that the Windows Edge Gateway will use to connect to CyberElements in the `<INSTALLDIR>\IPdiva\IPdivaGateway\conf\ssl\` directory.

Then edit the `<INSTALLDIR>\IPdiva\IPdivaGateway\conf\gateway.xml` file:

```
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
```

Apply the following replacements:

- `SERVER` must be replaced by the DNS name or IP address used to access the SSL Router of a CyberElements Bastion platform.
- `PORT` must be replaced by the SSL Router access port, which is usually `443`
- `CERT` must be replaced by the absolute path to the certificate file that the Windows Edge Gateway will use
- `PASSWORD` must be replaced by the certificate password

> **Example**
>
> Taking into account the information below:
>
> - Access to SSL Router : `my-ssl-router.domain.local:443`
> - Certificate file location: `C:\Program Files (x86)\Systancia\IPdiva\IPdivaGateway\conf\ssl\my-edge-gateway-windows.p12`
> - Certificate password : `MyP@ssw0rd`
>
> ```
>  1
>  2
>  3
>  4
>  5
>  6
>  7
>  8
>  9
> 10
> 11
> 12
> 13
> 14
> 15
> 16
> 17
> 18
> 19
> 20
> 21
> 22
> 23
> 24
> 25
> 26
> 27
> 28
> 29
> 30
> 31
> 32
> 33
> 34
> ```

In order to apply the new configuration, the Edge Gateway must be restarted.
This can be done by restarting the `IPdiva Gateway` service:

```
1
```
