Quantcast
Viewing all articles
Browse latest Browse all 5

Answer by Claudiu Belu for I try to follow instruction on "Windows authentication without passwords in OpenStack" but it seems like it is missing instruction for Import Key Pair via OpenStack Horizon. After I run script create-winrm-client-cert.sh I have got 2 files winrm_client_cert.pem winrm_client_cert.pfx I need to export Public key from winrm_client_cert.pem by this OpenSSL command openssl x509 -pubkey -noout -in winrm_client_cert.pem -out pubkey.pem Then I try to import this public key to my project: -----BEGIN CERTIFICATE----- MIIDIjCCAgqgAwIBAgIJAPb3vERlPtSwMA0GCSqGSI...... ............+0rcoyVMWNI50SrXPWpX6uaIuyWsN1Vc -----END PUBLIC KEY----- but I encountered with “Unable to import key pair” when trying to import the Key Pair via the  OpenStack Horizon same as this link https://schwulet.wordpress.com/2016/0... Please can you let me know what did I missing?

Previous: Answer by avladu for I try to follow instruction on "Windows authentication without passwords in OpenStack" but it seems like it is missing instruction for Import Key Pair via OpenStack Horizon. After I run script create-winrm-client-cert.sh I have got 2 files winrm_client_cert.pem winrm_client_cert.pfx I need to export Public key from winrm_client_cert.pem by this OpenSSL command openssl x509 -pubkey -noout -in winrm_client_cert.pem -out pubkey.pem Then I try to import this public key to my project: -----BEGIN CERTIFICATE----- MIIDIjCCAgqgAwIBAgIJAPb3vERlPtSwMA0GCSqGSI...... ............+0rcoyVMWNI50SrXPWpX6uaIuyWsN1Vc -----END PUBLIC KEY----- but I encountered with “Unable to import key pair” when trying to import the Key Pair via the  OpenStack Horizon same as this link https://schwulet.wordpress.com/2016/0... Please can you let me know what did I missing?
Hello, The article you mentioned is passing the x509 certificate to the instance through instance **user_data**, not as a keypair: nova boot --flavor 2 --image your_windows_image --key-name key1 vm1 --user_data=your_cert.pem That being said, since then, support for x509 has been added to nova-api (but not horizon). See the help for the nova keypair-add command: usage: nova keypair-add [--pub-key ] [--key-type ] [--user ] Create a new key pair for use with servers. Positional arguments: Name of key. Optional arguments: --pub-key Path to a public ssh key. --key-type Keypair type. Can be ssh or x509. (Supported by API versions '2.2' - '2.latest') --user ID of user to whom to add key-pair (Admin only). (Supported by API versions '2.10' - '2.latest') This has been introduced in nova-api v2.1 (microversion 2.2), so make sure you have that registered as an endpoint: openstack endpoint list # you should see something like this: # | 34291deac24a4a9195c340b70f03830f | RegionOne | nova | compute | True | admin | http://10.14.0.149:8774/v2.1 | If not, you'll have to register a new endpoint for the /v2.1 URL, and then run a command like this: nova --service-type endpoint_name keypair-add ... By default, the microversion 2.latest is used, but if not, you will probably want to be explicit: nova --service-type endpoint_name --os-compute-api-version 2.2 keypair-add ... Best regards, Claudiu Belu

Viewing all articles
Browse latest Browse all 5

Trending Articles