<div dir="ltr"><div><br></div><div>So the first command looks like this:<br></div><div>['openssl', 'rsa', '-passin', 'pass:{0}'.format(record.password)]</div><div><br></div><div>It's just accepting the following on stdin, formatted like:<br></div><div>-----BEGIN RSA PRIVATE KEY-----</div><div>...</div><div>-----END RSA PRIVATE KEY-----</div><div><br></div><div>...and outputting something that'll later be passed to ssh-keygen -i -f -mPKCS8.</div><div><br></div><div>Is there a pyca/cryptography equivalent?</div><div><br></div><div>Thanks!</div><div><br></div><div>PS: I should've mentioned previously: I'm a bit of a cryptography newb.</div><div><br></div></div>