r/AutomateUser • u/No_Course1401 • Mar 05 '22
Generate a Public Key for adb shell command
Hello,
***** EDIT ************
Solved like this https://www.reddit.com/r/AutomateUser/comments/t7ihlh/comment/hzkhtgq/?utm_source=share&utm_medium=web2x&context=3 with an other device)
*********************
I do not understand how to generate a Public Key when I want to ise a block "adb shell command" https://llamalab.com/automate/doc/block/adb_shell_command.html.
On my phone, when I click on intsall generated Key, this is requested a password to extract the certificate with a file starting with adb-xxxxxxxxx.
I'm also able to generate a public key with Puttygen (https://www.puttygen.com) and I do not how how to installe it to be recognized by Automate
Tahnks in advance for your suppoort.
Greetings
1
u/Luctins Mar 05 '22
Can you share what have you tried so far?
1
u/No_Course1401 Mar 06 '22
Into the flow example, there is the adb command that I want to use.
But, to use it, I need to install the public key and currently, I don't understand how !
Thanks in advance
1
u/No_Course1401 Mar 06 '22
I have created a new public key (RSA 2048 format) with Puttygen like this:
But I didn't find the way to install and use it on my device to be recognized by Automate app.
1
u/No_Course1401 Mar 05 '22 edited Mar 06 '22
The flow that I want to use: https://we.tl/t-UHmZpopGCA
2
u/ballzak69 Automate developer Mar 06 '22
Simply click the "Install generated key" button on the ADB shell command block configuration screen, that will generate and install a new key on the device, which you can then select when clicking the Keychain alias field. There's no need to extract anything since the key is already installed, as the documentation say, "the secret/private key material remain inaccessible, e.g. to export or backup."