Skip to content
Release: Australia · Updated: 2026-03-12 · Official documentation · View source

Set up the Oracle Cloud IAM spoke

Integrate the ServiceNow instance and Oracle Cloud IAM by using the OCI SHA256WithRSA Signature credentials to authenticate ServiceNow requests.

Before you begin

  • Request an Integration Hub subscription.
  • Activate the Oracle Cloud IAM spoke.
  • Role required: admin

Create a Java KeyStore (JKS) certificate

Use the keytool utility to generate, import, and export certificates.

Before you begin

  • Make sure that the keytool utility is installed on your computer.
  • Role required: admin

Procedure

  1. Change to the directory where the certificate is to be saved.

    By default, keytool creates a keystore file in the directory where the keystore commands are run.

  2. Enter the following keytool command to generate the certificate in the keystore file, keystore.jks:

    keytool -genkeypair -alias <mycertificate> -keyalg RSA -keysize 2048 -validity 365 -keystore keystore.jks -storepass your_keystore_password -keypass your_key_password

    Note: Replace the placeholders <mycertificate>, <your_keystore_password>, and <your_key_password> with your certificate name, keystore password, and key password in all the sample commands.

  3. Enter your first name and last name, organization, and other details in the keytool prompt.

    These details are required for generating the certificate.

  4. Enter the following commands in the following sequence.

    keytool -export -alias sample -storepass <storepassword> -file server.cer -keystore keystore.jks
    keytool -import -v -trustcacerts -alias sample -file server.cer -keystore cacerts.jks -keypass <keypassword> -storepass <storepassword>
    keytool -export -alias sample -keystore keystore.jks -rfc -file public.cert
    keytool -export -alias sample -keystore keystore.jks -rfc -file certificate.pem
    keytool -list -rfc -keystore keystore.jks -alias sample -storepass <storepassword>
    keytool -importkeystore -srckeystore keystore.jks -destkeystore keystore.p12 -deststoretype PKCS12 -srcalias <alias> -deststorepass <storepassword> -destkeypass <keypassword>
    openssl pkcs12 -in keystore.p12 -nokeys -out cert.pem
    openssl pkcs12 -in keystore.p12 -nodes -nocerts -out PrivateKey.pem
    openssl rsa -in key.pem -pubout -out PublicKey.pem
    keytool -list -v -keystore keystore.p12 -storetype PKCS12 -storepass <storepassword>
    

    Verify the generated keystore.jks file in the target directory.

  5. Enter the following command to extract public key from the Java Keystore file.

    openssl x509 -pubkey -noout -in cert.pem > publickey.pem

Create X.509 certificate for the Oracle Cloud IAM spoke

You must create a X.509 certificate and attach the Java Keystore file to it. This certificate is used for connecting to Oracle Cloud IAM.

Before you begin

Role required: admin.

Procedure

  1. Navigate to All > System Definition > Certificates.

  2. Click New.

  3. In the form, fill in these fields.

    FieldDescription
    NameUnique name to identify the certificate. For example, OCI IAM certificate
    TypeType of the certificate. Select Java Key Store.
    Notify on expirationList of persons who are to be notified when a ceritificate is about to expire.
    Keystore passwordPassword of the keystore.
    Warn in days to expireNumber of days when a warning is sent to the user before the certificate expires.
    ActiveOption to make the certificate active.
    Short descriptionShort description for the keystore.
  4. Click the attachments icon and upload the keystore.jks file.

  5. Click Validate Stores/Certificates.

Create a credential record for the Oracle Cloud IAM spoke

Create a credential record for the Oracle Cloud IAM account. The Oracle Cloud IAM spoke connection and credential alias uses these credentials to authorize actions.

Before you begin

Use the public key from the Java Keystore (JKS) file and generate a fingerprint from your Oracle Cloud account. For more information about fingerprint, see Required Keys and OCIDs.

Role required: admin.

Procedure

  1. Navigate to All > Connections & Credentials > Credentials.

  2. Click New.

    The system displays this message: What type of Credentials would you like to create?

  3. Select OCI SHA256WithRSA Signature.

  4. On the form, fill these values.

    FieldDescription
    NameName to uniquely identify the record. For example, Oracle IAM Cloud Cred.
    Certificate Sys IDSys ID of the OCI Signing Certificate.
    AliasAlias of the KeyStore.
    Alias PasswordAlias password of the KeyStore.
    Key IDKey ID helps identify which key is used when multiple keys are used to sign tokens. The Key ID must be slash (/) separated values of Tenancy OCID, User OCID, and Fingerprint in this format:ocid1.tenancy.oc1..<unique_ID>/ocid1.user.oc1..<unique_ID>/<key_fingerprint>.
    Applies toOption to specify if the credential applies to all MID Servers in the network.
    ActiveOption to actively use the credential record.
    Authentication AlgorithmCustom authentication algorithm for outbound signing requests. Select OCI SHA256RSA Signing Algorithm
  5. Right-click the form header and click Submit.

Create a connection record for the Oracle Cloud IAM spoke

Create a connection record for your Oracle Cloud IAM account. The Oracle Cloud IAM spoke connection and credential aliases use these connections to perform actions in Oracle Cloud IAM.

Before you begin

Role required: admin.

Procedure

  1. Navigate to All > Connections & Credentials > Connections & Credentials Aliases.

  2. Open the alias record for OracleIAM_credentialANDconnecton.

  3. From the Connections tab, click New.

  4. On the form, fill these fields.

    FieldDescription
    NameName to uniquely identify the record. For example, Oracle IAM conn.
    CredentialCredential record created for Oracle Autonomous DB spoke. For example, Oracle IAM Cred.
    Connection aliasAlias record associated with this connection. Search and select sn_oci_iam_spoke.OracleIAM_credentialAN
    Connection URLBase URL to connect to Oracle Cloud IAM. For example, https://database.ap-mumbai-1.oraclecloud.com.
    ActiveOption to actively use the connection record.
    DomainDomain that the action runs in.
  5. Click Submit.