Unable to perform authentication due to error : java.io.IOException: Invalid DER: length field too big (186)

Unable to perform authentication due to error : java.io.IOException: Invalid DER: length field too big (186)

Problem: Error message "Unable to perform authentication due to error : java.io.IOException: Invalid DER: length field too big (186)" obtained while adding Oracle Cloud monitor.

Reason: This issue occurs if we use AES128 Encryption Standard to protect the RSA key pair (PEM file) with a passphrase as mentioned in Oracle Cloud documentation. Hence, it is difficult to read the private key from the PEM file due to encryption.

Solution: 

Generating Private key:

As per the Oracle Cloud documentation:

           openssl genrsa -out ~/.oci/oci_api_key.pem -aes128 2048

Recommended way to generate private key file as per the solution in the Oracle Cloud Customer Connect forum:

           openssl genrsa -out ~/.oci/oci_api_key.pem 2048

Execute the above recommended command in the command line to obtain the private key.

Generating Public key:

Execute the below command in the command line to obtain the public key from the generated private key:

      openssl rsa -pubout -in ~/.oci/oci_api_key.pem -out ~/.oci/oci_api_key_public.pem

Generating Fingerprint:

After generating the Public key, upload the public key in Oracle Cloud console to obtain the Fingerprint.

Provide the PEM file path of the Private keyFingerprint along with Tenancy OCID and User OCID as inputs and try adding the Oracle Cloud monitor in Applications Manager.

 
If the issue still exists, reach out to our support with the screenshot of the error obtained to appmanager-support@manageengine.com along with the latest Support Information File (SIF) from Applications Manager with print all logs enabled for analysis.

                  New to ADManager Plus?

                    New to ADSelfService Plus?

                      • Related Articles

                      • Troubleshooting Authentication Failed error

                        Authentication Failure Authentication failure occurs when the request to a resource is missing or has invalid credentials.  Check if URL requires authentication Access the URL in an incognito/private window and check if any pop up asking for ...
                      • Troubleshooting SSL Handshake Error

                        SSL Handshake Error SSL Handshake error occurs when a secure connection cannot be established to the URL added for monitoring. Common reasons for it are wrong SSL protocol version, incompatible ciphers, and invalid/missing client-side certificate.  ...
                      • Getting 'Invalid WMI query' with error code 0x80041017 in Windows

                        "Invalid WMI query" with error code WBEM_E_INVALID_QUERY (0x80041017) found in log files or script execution when collecting Windows performance counter data. It is possible that the Win32_PerfRawData_PerfOS_Processor cannot be found or accessed on ...
                      • Error : Unable to fetch Exchange Queues as CredSSP authentication is needed

                        This error occurs in Exchange Server monitor for non-mailbox roles when Queues monitoring is enabled. This usually occurs when the Applications Manager-installed server and the Exchange Server are present in different domains. You need to use CredSSP ...
                      • How to perform 'Silent Installation' of Applications Manager in Windows?

                        Follow the steps given below to perform the silent installation in Windows: 1. To perform silent installation/uninstallation, a response file needs to be created first. To create a response file, execute the below command: Response file for ...