---
title: "Proxy configuration - PKI Express"
description: "Configuring PKI Express to use a proxy for web requests with pkie config, including proxy authentication and environment variable alternatives."
canonical: "https://docs.lacunasoftware.com/en-us/articles/pki-express/config/proxy"
locale: "en"
product: "PKI Express"
last_updated: "2026-07-14"
---

# Proxy configuration - PKI Express

To configure [PKI Express](https://docs.lacunasoftware.com/en-us/articles/pki-express) to use a proxy for web requests:

```sh
pkie config --set proxyHost=IP --set proxyPort=PORT
```

> **Note**
>
> The commands on this article require administrative privileges. On Linux, you may need to use `sudo` or, on Windows,
> a command prompt with elevated privileges.

If the proxy requires authentication with username and password, do also:

```sh
pkie config --set proxyUsername=USERNAME --set proxyPassword=PASSWORD
```

On Linux, certain characters on the password such as `!` and `$` may cause problems. In such cases, surround the last argument with simple quotes (`'`):

```sh
pkie config --set proxyUsername=USERNAME --set 'proxyPassword=PASSWORD'
```

Alternatively, these settings may be changed by setting the following environment variables:

* `pkie:proxyHost` or `pkie__proxyHost`
* `pkie:proxyPort` or `pkie__proxyPort`
* `pkie:proxyUsername` or `pkie__proxyUsername`
* `pkie:proxyPassword` or `pkie__proxyPassword`

> **Note**
>
> On Linux environments, variable names are **case sensitive**
