If only server authentication is required, the EAServer client must provide authentication to the server to prove that the client can be trusted before it can connect to the server. By default, EAServer 6.x uses 2001 as the port for this type of SSL connection.
The EAServer host’s certificate file must be imported into the Microsoft certificate store on the client’s computer. You can do this using the Certificate snap-in in the Microsoft Management Console (MMC).
To import an EAServer certificate into the client computer’s certificate store:
Select Run from the Windows Start menu,
type mmc
in the Run dialog
box, and click OK to open the Microsoft Management Console.
Select File>Add/Remove Snap-in to open the Add/Remove Snap-in dialog box.
Click Add to open the Add Standalone Snap-in dialog box.
Select Certificates from the Snap-in list and click Add to open the Certificates Snap-in dialog box.
Select the Computer account radio button, click Next, click Finished, and close the Add Standalone Snap-in and Add/Remove Snap-in dialog boxes.
A Certificates node displays in the MMC.
Expand the Certificates node in the MMC, right-click Personal, select All Tasks, and then select Import.
The Certificate Import Wizard opens.
Follow the instructions in the Certificate Import Wizard to import the certificate.
The wizard prompts you to provide a certificate file. For server authentication, this is the certificate file that is configured as the certificate for EAServer on port 2001 or any other port that is specified for use in server-only authentication SSL mode. You may already have such a file from configuring EAServer for SSL connections, or, if you have access rights to the built-in Java keystore on the EAServer host, you can export the required certificate from the keystore.
For more information about exporting a certificate, see the EAServer documentation.
In the PowerScript connection code, change the EAServer host’s address to a URL that begins with “iiops” and ends with the correct SSL port. All other code is the same as if the client was connecting to a server without using SSL.
The following sample code connects with EAServer using an SSL connection:
Connection myconnect int rc myconnect = create Connection myconnect.Application = "pbtest" myconnect.Driver = "jaguar" myconnect.UserID = "admin@system" myconnect.Password = "abc" myconnect.Location = "iiops://mydesktop:2001" rc = myconnect.connecttoserver( )