Python equivalent of ssh-keygen command (create and sign user certificate)

117 Views Asked by At

I looking for a way to get a signed openssh user certificate without using the subprocess library, equivalent to the following command:

ssh-keygen -s user_ca -I ID_USER -n user1,user2 -V+1d user-key.pub

Output:

[email protected] AAAAHHNza ... user@hostname
1

There are 1 best solutions below

0
Jarosław Wieczorek On BEST ANSWER

The sshkey-tools library solves my problem