2569156 - How to create modify and validate SSLContext.properties file

Symptom

You updated SSL Library as of SAP Note 2284059 and want to modify SSLContext.properties file (to set custom values).

Environment

SAP NetWeaver for AS Java 7.1X/7.2/7.3X/7.4/7.5 using SSL

Resolution

A) Get SSLContext.properties file that is present on your filesystem:

2569156 - How to create modify and validate SSLContext.properties file_第1张图片2569156 - How to create modify and validate SSLContext.properties file_第2张图片2569156 - How to create modify and validate SSLContext.properties file_第3张图片 

 

 

  1. Navigate to folder "usr/sap//SYS/global/security/lib/tools/" and choose iaik_ssl.jar file.
  2. Copy this file to a specific folder.
  3. Rename it into iaik_ssl.zip.
  4. Open this iaik_ssl.zip and find SSLContext.properties file. It can be found on path ".../iaik_ssl/iaik/security/ssl/".
  5. Extract the file.

B) Modify SSLContext.properties file with the custom settings:

2569156 - How to create modify and validate SSLContext.properties file_第4张图片

 

  1. Resolution part A) is not mandatory, because if you create an empty text file and copy it to the appropriate folder, the result will be the same.
  2. So create an empty SSLContext.properties file or open the file that you got in the resolution part A) with a text editor e.g. with Notepad++.
  3. Maintain the desired custom properties. Be informed that regarding Cipher suites, if no Cipher suite entry is present in the properties file, it means that default ones are used listed in SAP Note 2284059 "Cipher suites supported in the default configuration" part. If you want to use other Cipher suite configuration than default, see "Modify the list of supported cipher suites" part of SAP Note 2284059 and the KBA 2616983 with parameter cipherSuite=Note that just one such line deactivates all the default ciphers. They must be listed explicitly when you have configured this parameter.
  4. If you want to remove default ciphers, then you should explicitly list just those you want to have from the list in section 'Cipher suites supported in the default configuration' of note 2284059, again with parameter cipherSuite=.
  5. Make sure the file location can be accessed at runtime without any issue.
  6. Make sure that all permissions are granted to this file and its folder.

To handle customize TLS versioning refer to the following KBA:
2284059 - Update of SSL library within NW Java server


C) Specify the path of SSLContext.properties file in Config Tool:

  1. Copy the customized SSLContext.properties file to a subfolder of the global folder "\usr\sap\\SYS\global\... e.g. to \usr\sap\\SYS\global\security\lib\tools folder. It is required for each node to access this config file.
      

      
  2. Open Config Tool "\usr\sap\\\j2ee\configtool". (You can also add this parameter via NWA. Check steps at the end of this session)
  3. Navigate to "cluster-data" -> template -> instance.
  4. Choose "VM Parameters" -> Additional -> New.
  5. Add -Diaik.security.ssl.configFile=file:/
    See formats: Name: "-Diaik.security.ssl.configFile"; Value: "file:/".
    The file name must be included in the value.
       

      
    The same result can be reached if you maintain the parameter "iaik.security.ssl.configFile=file:/" (without "-D" extension) under "VM Parameters" -> System.
       
  6. Press OK. Now you should see the new additional parameter.
  7. Repeat for all instances.
  8. Save Config Tool.
  9. Restart the AS Java to validate the changes.

To add this parameter via NWA, do the following:

  1. Access NWA via http://:/nwa.
  2. Go to Configuration -> Infrastructure -> Java System Properties.
  3. Select tab "Additional VM Parameters".
  4. Click to "add" button.
  5. Fulfil "Name" and "Default Calculated Value" with correct values
  6. Save and restart the AS Java to validate the changes

For additional information regarding JVM parameter changes, see KBA 1888685 "How to add new JVM parameters" part.

See Also

SAP Note: 2708581 - ECC Support for Outbound Connections in SAP NW AS Java

KBA: 2538934 - ECDHE cipher suites handshake failure

KBA: 2616423 - SSL does not work between PI and Remote System - SSLException: Peer sent alert: Alert Fatal: handshake failure

Keywords

SSLContext.properties, SSL, sslcontext, cipher suite, cipher suites, TLS, Config tool, configtool, iaik, iaik.jar, ssllib, ssl library, -Diaik.security.ssl.configFile, Diaik.security.ssl.configFile, Java Cryptography ExtensionJCE, JVM, Java virtual machine, client.minProtocolVersion, client.maxProtocolVersion, protocolVersions, cipherSuite, client.allowLegacyRenegotiation, allowLegacyRenegotiation, extension

你可能感兴趣的:(SAP,PO,PI,系统接口集成,SAP,HTTS,SSL,HTTS,证书安装,SSL,证书安装,SSLException,SSL,Certificate)