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:

 

 

 

  1. Navigate to folder "usr/sap/<SID>/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:

 

  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=<name of cipher suite>. 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=<name of cipher suite>.
  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\<SID>\SYS\global\... e.g. to \usr\sap\<SID>\SYS\global\security\lib\tools folder. It is required for each node to access this config file.
      

      
  2. Open Config Tool "\usr\sap\<SID>\<instnr>\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:/<path of the SSLContext.properties file>
    See formats: Name: "-Diaik.security.ssl.configFile"; Value: "file:/<path to the SSLContext.properties file/SSLContext.properties>".
    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:/<path of the SSLContext.properties 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://<host>:<port>/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

  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

SAP爱好者

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值