HomeGuides
Log In
Guides

Importing Keys - NEW! 🚀

Before importing a key, select the Cluster in the Select Cluster dropdown menu.

To import an existing public key, go to the Keys tab of the Trust Store page and follow these steps:

  1. Click the Import button.
  2. In the Import Key window, click the UPLOAD button and browse the file system to locate the file.
  3. Click the Open button to load the file.
  4. In the Type drop-down list, select the TYPE (*) of key you are importing choosing among:
PKHOST
PKUSR

a. If you select PKHOST, you need to configure one additional property:
FORMAT (*):

Automatic encoding detection
OpenSSH public key file
Secure Shell (SSH) Public Key File

b. If you select PKUSR, you need to configure two additional properties:
USER: select a user registered in Data One, this is not a mandatory field (value: none).
FORMAT (*) (see FORMAT property of PKHOST).

  1. Press Confirm.

As an alternative, you can import the SSH Keys in the pkhost repository using the /steng/bin/certedit.sh command line utility.

Example:

root@steng-p1:/steng/bin# ./certedit.sh import --in /tmp/dataone-new-server-key.pub -d pkhost -f 9  
Importing content into database pkhost  
File [/tmp/dataone-new-server-key.pub] successfully imported into [pkhost] with handle [13]

To display the newly imported key in the Trust Store > Keys tab, click the SYNC button.

🚀 Multiple SSH keys can be imported for the same server. They will be listed in the Keys list with unique names. See the Trust Store page for details.

Important note! Each SSH key can be imported for only one server address.