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.
  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.
  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.
  5. Click Submit.