Configure Application to use SSL Authentication

Your application must initialize the SSLRMISocketFactories class with the desired SSL authentication configuration prior to instantiating any remote objects.

Required inputs

Procedure

Update your Java application to include the code segment presented below.


import java.util.Properties;
import java.io.FileInputStream;

import com.sas.services.util.SSLRMISocketFactories;

...

// load a properties object with the desired SSL configuration
// as part of your application's startup initialization

String sslConfigFile = "C:\xxx\sas_ssl_properties.config";
Properties sslConfigProperties = new Properties();
sslConfigProperties.load(
   new FileInputStream(sslConfigFile));
         	
// initialize the application's SSL RMI socket factory before
// an attempt is made to export any remote objects

SSLRMISocketFactories.configureSSLAuthentication(
   sslConfigProperties);

...

// it is now OK to export remote objects
// (for example, deploy remotely accessible foundation services)