IBM / aspera-sdk-js

IBM Aspera for Desktop JavaScript SDK
https://ibm.github.io/aspera-sdk-js/docs
Apache License 2.0
0 stars 0 forks source link

Expose SSH public key to client #8

Closed dwosk closed 5 months ago

dwosk commented 5 months ago

The desktop app generates a unique SSH private key on startup. The corresponding public key is made available in the get_info RPC API, which can be used by downstream apps to register the key with any HSTS that supports SSH authentication with unique private keys.

dwosk commented 5 months ago
        asperaDesktop.getInfo().then(appInfo => {
          console.log('SSH PUBLIC KEY', appInfo.client_pubkey);
          console.log('VERSION', appInfo.version);
        }).catch(error => {
          console.log('GET INFO FAIL', error);
        })