VirtualBox

source: vbox/trunk/doc/manual/en_US/dita/topics/cloud-create-api-keypair.dita@ 105515

Last change on this file since 105515 was 105289, checked in by vboxsync, 9 months ago

Docs: bugref:10705. Merging current changes to dita files from docs team's repo. (r6123, r6120, r6117)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.2 KB
Line 
1<?xml version='1.0' encoding='UTF-8'?>
2<!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd">
3<topic xml:lang="en-us" id="cloud-create-api-keypair">
4 <title>Creating an API Signing Key Pair</title>
5
6 <body>
7 <p>To use the cloud integration features of <ph conkeyref="vbox-conkeyref-phrases/product-name"/>, you must generate
8 an API signing key pair that is used for API requests to <ph conkeyref="vbox-conkeyref-phrases/oci"/>. </p>
9 <p>Your API requests are signed with your private key, and <ph conkeyref="vbox-conkeyref-phrases/oci"/> uses the
10 public key to verify the authenticity of the request. You must upload the public key to the <ph
11 conkeyref="vbox-conkeyref-phrases/oci"/> Console. </p>
12 <note>
13 <p>
14 This key pair is not the same SSH key that you use to access
15 compute instances on <ph conkeyref="vbox-conkeyref-phrases/oci"/>.
16 </p>
17 </note>
18 <ol>
19 <li>
20 <p>(Optional) Create a <filepath>.oci</filepath> directory to store the key pair. </p>
21 <pre xml:space="preserve">$ mkdir ~/.oci</pre>
22 <p>The key pair is usually installed in the <filepath>.oci</filepath> folder in your home directory. For
23 example, <filepath>~/.oci</filepath> on a Linux system. </p>
24 </li>
25 <li>
26 <p>Generate the private key. </p>
27 <p>Use the <codeph>openssl</codeph> command. </p>
28 <ul>
29 <li>
30 <p>
31 To generate a private key with a passphrase:
32 </p>
33 <pre xml:space="preserve">$ openssl genrsa -out ~/.oci/oci_api_key.pem -aes128 2048 </pre>
34 </li>
35 <li>
36 <p>
37 To generate a private key without a passphrase:
38 </p>
39 <pre xml:space="preserve">$ openssl genrsa -out ~/.oci/oci_api_key.pem 2048</pre>
40 </li>
41 </ul>
42 </li>
43 <li>
44 <p>Change permissions for the private key. </p>
45 <pre xml:space="preserve">$ chmod 600 ~/.oci/oci_api_key.pem</pre>
46 <p>Generate the public key. </p>
47 <pre xml:space="preserve">$ openssl rsa -pubout -in ~/.oci/oci_api_key.pem -out ~/.oci/oci_api_key_public.pem</pre>
48 </li>
49 </ol>
50 </body>
51
52</topic>
Note: See TracBrowser for help on using the repository browser.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette