Friday, November 4, 2022

Generating a CSR with Java keytool , deploying the certificates in keystore and configuring the same in the tomEE server.

 

Deploying security certificates is a three-step process in general

1. CSR Generation

2. Importing the certificatates into the keystore

3. Configuring the keystore location in your web server ( we have used TOMEE in this case )

All the below commands needs to be executed on the command prompt within the java path :

C:\Program Files\Java\Jdk\bin>

Step 1:  The below command creates a keystore file in the path mentioned below.

keytool -genkey -alias abt-rts.education.com -keyalg RSA -keystore E:\Keystores\Cordys2022L3\cordysKeyStore2022.jks


Step 2: Once the keystore file is created with the necessary details, use the below command to create a csr file , the same needs to be shared with your certifying authority (CA)

Keytool -certreq -keyalg RSA -alias abt-rts.education.com -file  E:\Keystores\2022\cordys2022.csr -keystore  E:\Keystores\2022\cordys2022.jks


Step 3 : As a response you will be receving two files from the CA  intermediateCA and site crt files, the same needs to be imported into the keystore using the below commandss

keytool -import -alias intermediateCA -keystore E:\Keystores\2022\cordys2022.jks -trustcacerts -file E:\Keystores\2022\DigiCertCA.crt

keytool -import -alias abt-rts.education.com -keystore E:\Keystores\2022\cordys2022.jks   -trustcacerts -file E:\Keystores\2022\abt-rts_amicorp_com.crt

Step4 : Once done specify the key store path and password in the tomcat server.xml file which is available in the path 

C:\Program Files\TomEE\conf\Sever.xml  as specified below":

In the server.xml file locate/add the below entry and specify the keystore location and keystore password.

<Connector port="443" protocol="HTTP/1.1" keystorePass="password" 

     keystoreFile="E:\Keystores\2022\cordys2022.jks"

       sslProtocol="TLS" clientAuth="false" secure="true" scheme="https" SSLEnabled="true" maxThreads="200"/>


Step 6 : Restart your tommEE services 

 



 

Wednesday, September 13, 2017

Remote debugging in Cordys using eclipse

1. Add the below mentioned parameters in the JRE Configurations of the service container as shown below.

-Xnoagent
-Xdebug
-Xrunjdwp:transport=dt_socket,server=y,address=8090,suspend=n



2. Go the Eclipse - > Run - > Debug Configurations - > Create new configurations as shown below.

Specify the server name and port name as shown below. If you are working on local specify Host as localhost and port no to the one specified in the container level.



-- Narasimha Reddy

Tuesday, September 12, 2017

Monitor service not starting - > com.eibus.management.rmiregistry.port=1099 this port is already in use.

//PROBLEM//

Monitor service not starting - > com.eibus.management.rmiregistry.port=1099 this port is already in use.

//SOLUTION//

You can find this in wcp.properties in the following path:

C:\Program Files\OpenText\ProcessPlatform\Instance \config\wcp.properties.

Find the port 1099 if being used in any other tasks 

-Kill that task and try running monitor.


//Alternatively//

Goto 

Cordys Management Console -> Platform Properties -> Search and edit the property "com.eibus.management.rmiregistry.port"  and change the port number. Once done click onthe save option.


-- Narasimha Reddy, Lomadi



CARS not starting - Event Viewer error as -> "No Environment returned from jwrGetJNIEnvForCallingThread()"

//PROBLEM//
CARS not starting - Event Viewer error as -> "No Environment returned from jwrGetJNIEnvForCallingThread()"

//SOLUTION//

1. Take backup of OpenText CARS database
Example

C:\Program Files\OpenText\OpenText CARS\openldap\bin>slapd.exe -T"cat" -f slapd.conf -l backup.ldif

54c0d343 hdb_db_open: database "o=opentext.net": unclean shutdown detected; attempting recovery.
54c0d343 hdb_db_open: database "o=opentext.net": recovery skipped in read-only mode. Run manual recovery if errors are encountered.
54c0d343 hdb_monitor_db_open: monitoring disabled; configure monitor database to enable

2.Recover the OpenText CARS database
Example

C:\Program Files\OpenText\OpenText CARS\openldaptest\bin>db_recover.exe -v -h "C:\Program Files\OpenText\OpenText CARS\openldaptest\bdb"

BDB2526 Finding last valid log LSN: file: 7 offset 5437111
BDB1518 Recovery complete at Thu Jan 22 16:04:41 2015
BDB1519 Maximum transaction ID 0 recovery checkpoint [7][5437055]

3. Remove alock file in the OpenText CARS database directory
From the \bdb folder, delete the file named alock.

4.Start OpenText CARS from Windows services or execute service using the net start command.

-- Narasimha Reddy, Lomadi

Start & Stop Cordys Services though a batch file

If at all Cordys has been installed on your local machine then abnormal termination of  system always leads to getting crash of your CARS / Monitor, to come out of this you can always create a batch file to start/stop cordys services

To start the Services
======================================================
@ECHO OFF
NET START MSSQL$SQLEXPRESS
IF NOT ["%errorlevel%"]==["0"] PAUSE
NET START SQLBrowser
IF NOT ["%errorlevel%"]==["0"] PAUSE
NET START "OpenLDAP-slapd CARSONE"
IF NOT ["%errorlevel%"]==["0"] PAUSE
NET START "Cordys Monitor PPONE"
IF NOT ["%errorlevel%"]==["0"] PAUSE
NET START TomEE
ECHO Started all services
PAUSE

To Stop the Servics
=======================================================

@ECHO OFF
NET STOP TomEE
IF NOT ["%errorlevel%"]==["0"] PAUSE
NET STOP "Cordys Monitor PPONE"
IF NOT ["%errorlevel%"]==["0"] PAUSE
NET STOP "OpenLDAP-slapd CARSONE"
IF NOT ["%errorlevel%"]==["0"] PAUSE
NET STOP SQLBrowser
IF NOT ["%errorlevel%"]==["0"] PAUSE
NET STOP MSSQL$SQLEXPRESS
ECHO Stopped all services
PAUSE

To restart
====================================================

@ECHO OFF
NET STOP TomEE
IF NOT ["%errorlevel%"]==["0"] PAUSE
NET STOP "Cordys Monitor PPONE"
IF NOT ["%errorlevel%"]==["0"] PAUSE
NET STOP "OpenLDAP-slapd CARSONE"
IF NOT ["%errorlevel%"]==["0"] PAUSE
NET STOP SQLBrowser
IF NOT ["%errorlevel%"]==["0"] PAUSE
NET STOP MSSQL$SQLEXPRESS
IF NOT ["%errorlevel%"]==["0"] PAUSE
NET START MSSQL$SQLEXPRESS
IF NOT ["%errorlevel%"]==["0"] PAUSE
NET START SQLBrowser
IF NOT ["%errorlevel%"]==["0"] PAUSE
NET START "OpenLDAP-slapd CARSONE"
IF NOT ["%errorlevel%"]==["0"] PAUSE
NET START "Cordys Monitor PPONE"
IF NOT ["%errorlevel%"]==["0"] PAUSE
NET START TomEE
ECHO Restarted all services
PAUSE


-- Narasimha Reddy, Lomadi

Monday, August 8, 2011

JavaMaxHeapSize and Error 'java.lang.OutOfMemoryError'

When the Error 'java.lang.OutOfMemoryError' appears on the Domino console ?

http://www-01.ibm.com/support/docview.wss?uid=swg21197856

What do it mean by .JAVAMAXHEAPSIZE ?
It means that the JVM has run out of all the memory that has been allocated to it by DOMINO. You can change the amount of memory allocated for use by your JVM by the JAVAMAXHEAPSIZE variable in the Notes.INI File.

How to set the JAVAMAXHEAPSIZE in the notes.INI file ?
http://www-10.lotus.com/ldd/dominowiki.nsf/dx/09262007041133PMHPERN7.htm

Monday, April 26, 2010

Administration preferences window is not visible in 8.5.1 Admintration client.

I am suppouse to do some changes in the Administration Preferences settings dialog box which is avaliable in the File->Preferences->Administration Prefences of the Adminstration Client.

I opened my Adminstration Client and navigated to the File->Preferences-> tab then I noticed Administration Preferences options is missing from my Adminstration Client.

Several menu options that are available in Lotus Notes® 7.x and 6.x appear to be missing in Lotus Notes 8 client.

All the missing options from 8 which they were in earlier versions comes under the "Advanced options".
All this optins are intentionally hidden from Notes Client and Administration Client because where typical end users might not have a need for them.

To enable the Advanced menus in the Notes 8 client and Admintration client
select View > Advanced Menus. The advanced menus will always be enabled (unless you disable them by toggling off the View > Advanced Menus choice) even after you have closed and restarted Notes.

- Narasimha Reddy , Lomadi

Thursday, March 11, 2010

An alternate tool for selecting specific category documents in a view


Recently I had a requirement form a user where he needs to select a specific set of category documents and export the same into a text file where he can't do the same with Ctrl + A which selects all the documents in the view. The challenge here is the view itself consists of thousands of documents in each category. For selecting all the documents in a specific category he has to spend considerable amount of time. Basically it is time consuming operation for him.

In the lotus notes I couldn't find a short cut key for selecting a specific set of category documents. For this I developed a small tool where by using this we can filter all the documents except that specific ones. So now the view shows only the required set of category documents, now these documents can only be selected by using Ctrl + A.

To do this basically i put a action button in the view by clicking on this it populates all the category values in a dialog box, where the user can select the desired category. By doing this now the view only shows the selected category documents.





Once the selection is made from the dialog box now the view displays on the documents specific to that category as shown in the below picture








The code behind the action button :

Sub Click(Source As Button)
Dim ws As New NotesUIWorkspace
Dim UiView As NotesUIView
Dim vw As NotesView
Set UiView = ws.CurrentView
Set vw = UiView.View
'Get Handle to the current View and return the all the unuque values in the first column
Dim Values
Values=Evaluate({@unique(@DbColumn ( "" : "" ;"":"" ; "ClientsInMac" ; 1))})
Redim valueArray(Ubound(Values)+1) As String
Dim i As Integer
i=0

Forall x In values
valueArray(i)=x
i=i+1
End Forall

valueArray(i)="Return to normal view"
Values=valueArray
Dim selectedValue As Variant
selectedValue = ws.Prompt (PROMPT_OKCANCELCOMBO, "Category Selection","Select a Category", Values(0), Values)
If Isempty (selectedValue) Then
Exit Sub
End If
Dim formula As String
formula={SELECT form = "ACISClientEntry" & aaaHasMacEntry=-1}
If selectedValue="Return to normal view" Then
vw.SelectionFormula=formula
vw.Refresh
Call ws.ViewRebuild
Exit Sub
End If
formula=vw.SelectionFormula+ { & @TimeToTextInZone(@Date(@Modified);S0) = "} +selectedValue + {"}
'Chane the selection formula of the view dynamically based on the current selection.
vw.SelectionFormula=formula
vw.Refresh
Call ws.ViewRebuild
End Sub

Generating a CSR with Java keytool , deploying the certificates in keystore and configuring the same in the tomEE server.

  Deploying security certificates is a three-step process in general 1. CSR Generation 2. Importing the certificatates into the keystore 3. ...