Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to retrieve RSA private key when creating keypair using Compute API?

I'm currently writing a simple UI for doing a limited set of actions in Openstack and I've become stuck on allowing the user of the interface to make a call to create a keypair, and then get a .pem file in return with their private key.

As far as I'm aware the POST/v2/​{tenant_id}​/os-keypairs only returns a response with the public key, fingerprint,name and user id. I'm a novice with this type of security so I may be missing something straightforward, but any advice on how to handle keypair creation in this way would be appreciated!

How to retrieve RSA private key when creating keypair using Compute API?

I'm currently writing a simple UI for doing a limited set of actions in Openstack and I've become stuck on allowing the user of the interface to make a call to create a keypair, and then get a .pem file in return with their private key.

As far as I'm aware the POST/v2/​{tenant_id}​/os-keypairs only returns a response with the public key, fingerprint,name and user id. I'm a novice with this type of security so I may be missing something straightforward, but any advice on how to handle keypair creation in this way would be appreciated!