The first thing we will need do is to configure the PGP key pair in your One Model instance. To do this, navigate to the Company settings page from the Admin menu:

Once you are on the Company Settings, scroll down the page to the PGP Configuration section. If you have a key pair setup already, you will be able to download the public key here, otherwise it is time to setup a new key:

Confirm the creation:

Now that you have a key pair configured, you can download the public key from the company settings page in the PGP Configuration section.

This key will now be able to be used to encrypt any of the files you are going to be sending to One Model. If you create a new key in the future, the old key pair will be removed and will no longer work, so any encryption scripts will need to be updated with the new key.

Encryption Example

For an example of how to use this key we will need a pgp encryption tool. For this example we are going to use an opensource tool called GnuPG. The first step is to import the key that you have downloaded onto the keyring using the following command:

gpg --import c:\pgp\Company1.onemodel.asc

This will add a recipient called Company1 to the keyring. From there we need to run an encryption over a file. This can be achieved using the following:

gpg --output pa0000.dat.gpg --recipient Company1 --trust-model always --encrypt pa0000.dat

Sending Data

Now that you have a PGP key pair setup you can use it to encrypt the files before you send them to us. The files will be able to be decrypted when we receive them using the private key you generated earlier. This will be the case irrespective of how you send us the data, whether that be over SFTP or via the site Upload function.

Did this answer your question?