The Obfuscate utility takes a long time to finish.

The Obfuscate utility takes a long time to finish.

book

Article ID: KB0087050

calendar_today

Updated On:

Products Versions
TIBCO Runtime Agent (TRA) -
Not Applicable -

Description

Resolution:
Description:
============
The Obfuscate utility which is used to encrypt plain text password takes a long time to finish.
The issue is very specific to the customer's environment.

Environment:
===========
TIBCO Administrator 5.x.x
TIBCO Runtime Agent 5.x.x
OS : RHEL 5.x

Symptoms:
========
The Obfuscate utility takes a long time to complete.
Create a File (passwordtest.txt) with the below contents.

*****FILE CONTENT***********************
user=tibcouser
pw=#!password
*****FILE CONTENT***********************

Now run the below command.
./obfuscate &ltpath to the file password.txt>/password.txt

The utility will take a long time (sometime 90 - 200 seconds) to complete.

Cause:
=====
The problem is specifically related to the customer's OS environment.
The issue occurs because the JVM should use /dev/urandom, not /dev/random.

Resolution:
==========
1). Check the permissions on random and urandom at the OS level.

2). Add the following two properties in the obfuscate.tra file.

   java.property.java.security.egd=file:/dev/./urandom
   java.property.TIBCO_SECURITY_VENDOR=j2se

3). If the above properties are not helpful then try running the following command and test.

   rngd -r /dev/urandom

Note : The issue is very customer environment specific.

Issue/Introduction

The Obfuscate utility takes a long time to finish.