Create a public/private key pair for the Box external content connector
Generate an encrypted private key and a public key for use by the Box external content connector.
Before you begin
You need access to the OpenSSL Library toolkit, version 3. If you don't have this toolkit available, you can install it as follows:
- Linux
- Install the latest available openssl package using your distribution's package manager. As an example, on Ubuntu or Debian, run
sudo apt install openssl. On Red Hat Enterprise Linux, runsudo dnf install openssl. - macOS
- macOS ships with a LibreSSL executable binary installed as /usr/bin/openssl, but one of the OpenSSL commands for this task requires options that LibreSSL doesn't support. Use Homebrew (https://brew.sh/) to install the openssl@3 formula. For details on this formula, see https://formulae.brew.sh/formula/openssl@3.
- Windows
- Install OpenSSL binaries from https://github.com/openssl/openssl/wiki/Binaries.
Role required: none
About this task
You need to create your own private and public RSA keys for use with the Box external content connector. The keys that the Box developer console generates are not secure enough to comply with the connector's security requirements.
To configure public/private key authentication for the connector, you need to create the following items:
- A 4,096-bit RSA private key in encrypted PKCS#8 format.
- Your connector administrator needs this encrypted private key file and its password when configuring settings for the Box external content connector.
- When the Box external content connector runs a crawl, it presents the public key certificate from this encrypted private key file to authenticate itself as a valid client of the OAuth 2.0 app in the Box developer console.
- A public key in PEM-encoded (Base64 ASCII) X.509 certificate format.
- Your Box administrator needs to upload this certificate file in the Box OAuth 2.0 app that grants API access to the Box external content connector.
- When the Box external content connector presents its public-key certificate for client authentication, Box uses this uploaded certificate to confirm that the connector is a valid client of the OAuth 2.0 app.
Procedure
What to do next
Provide the following items to your Box admin and your connector administrator:
| Item | Description |
|---|---|
| PEM-encoded X.509 public key certificate text | Provide this text to your Box administrator. They will need to upload the PEM-encoded X.509 public key certificate text to the Box developer console when configuring an OAuth 2.0 application for the Box external content connector.
For more information on configuring an OAuth 2.0 application in the Box developer console for the Box external content connector, see Configure Box for external content indexing. |
| Encrypted private key file and password | Provide this encrypted private key file and its password to your connector administrator. They will need the file and password when configuring the Box external content connector.
For details on creating and configuring the Box external content connector, see Create a Box external content connector. |