Generate a RSA key pair on macOS

If you elected to receive your statements in an encrypted form, you would first need to generate an RSA Key pair.


RSA Key Generation

To generate an RSA Key

  1. Click on the Spotlight search (the magnifier glass on the top right of your screen), type Terminal and click on the Terminal app from the search results.
  2. In the Terminal window, type one of the commands below, according to the type of key that you want to create, and then press Enter on your keyboard
    Type of Key Command to type in the Terminal
    RSA 2048-bit ssh-keygen -t rsa -b 2048
    ECDSA (nistp256) ssh-keygen -t ecdsa -b 256
    ECDSA (nistp384) ssh-keygen -t ecdsa -b 384
    ECDSA (nistp521) ssh-keygen -t ecdsa -b 521
    EDDSA (ed25519) ssh-keygen -t ed25519
    Note: all the above key types are supported by our system. You can choose the one of your preference
  3. You will then be prompted to choose a location to save the file. Press Enter to store the key in the default location /Users/yourusername/.ssh/id_key (where your username corresponds to your macOS login user)
  4. Type a passphrase of your choice and press Enter. Type again the same passphrase (to confirm it) and press Enter

Important Note: please remember your passphrase, since you will be prompted to enter it when you will use the key to decrypt files.

  1. If the key pair creation has been successful, you will see an output similar to the one in the picture below (it is an example).
  2. From the previous command output (see picture above), highlight the entire path of the public key and copy the selection with CMD + C (or with right mouse click - > Copy).
  3. Locate Finder in the bottom left of your Dock. Right click on the Finder icon and then select Go to Folder…
  4. Paste the path you have copied at step 6. into the field "Go To Folder" with CMD + V (or with right mouse click - > Paste). Press Enter
  5. Right click on the public key file (id_key.pub in our example) and select Share and then Mail.
  6. Your public key will be attached to a new mail. Include the last 4 digits of your Account number in the email Subject. Send the mail to filedelivery@interactivebrokers.com


Please Note 

  • Attach only the public key file (id_key.pub in our example), nothing else. We will not accept your public key if your private key was included in the email.
  • We will notify you within 1-2 business days, once your key has been imported on our system.

Additional Information

Powered by IBot
Generate RSA key pair for Windows
How to set up sFTP for using certificate authentication on Windows
Generate a key pair using GPG suite on macOS
How to set up sFTP for using certificate authentication on macOS