community.sap_install icon indicating copy to clipboard operation
community.sap_install copied to clipboard

sap_swpm: sapinst now requires online verification of certficate revocation list (CRL) resulting in failure

Open rob0d opened this issue 1 year ago • 3 comments

Hi All,

Hot off the press :). As of last week all versions of SWPM (released after 10/1/25) which are based on 753.0.10 framework perform a mandatory CRL check by getting the revocation list from https://tcs.mysap.com/crl/crlbag.p7s . In most cases the server we are installing SAP on will NOT have internet access. In previous version this was ignored, but as of now this leads to a fatal installation error. Note 3207613 (point 5) explains the behaviour. As a workaround I have downloaded the CRL into a central location and created symlinks to it from /root/.sapinst/crlbag.p7s, but a more sensible and systematic solution is required. As per the note there are several different properties can be set: SAPINST_CRL_SOURCE_URL=<custom URL> - for custom locally accessible URL to CRL SAPINST_CRL_PATH= - for custom location on the local filesystem (instead of /root/.sapinst/crlbag.p7s) SAPINST_ENFORCE_CRL=false - which will completely disable the CRL check. This is obviously discouraged by SAP. In addition an environment variable HTTPS_PROXY can be set which will make SWPM/sapinst use the proxy to get the CRL file.

So now we have 4 new options and 5 different behaviours which need to be taken care of

  1. Get CRL from default location (Default behaviour). With or without a proxy
  2. Get CRL from custom URL. With or without proxy
  3. Get CRL from a local file
  4. Ignore CRL checks

I'm happy to write some code and possibly test it, but I am wondering if you guys have a view how this should be handled. Create three mutually exclusive parameters + a control parameter + https_proxy parameter? Something else?

rob0d avatar Jan 29 '25 17:01 rob0d

Hi @rob0d - Thanks for raising this. I will soon run some tests.

berndfinger avatar Feb 05 '25 12:02 berndfinger

@rob0d - FYI - I have started working on the issue.

Some more details on the error:

The role sap_swpm aborts in task SAP SWPM - Verify if sapinst process finished successfully with the following message shown in the first 10 lines:

Abort execution because of \nCRL is enforced by SAPINST_ENFORCE_CRL, but the CRL path '/root/.sapinst/crlbag.p7s' does not exist. See SAP Note 3207613.

berndfinger avatar May 22 '25 13:05 berndfinger

I forgot to mention, in a mean time I've created a role to download CRL

https://docs.galaxy.saponrhel.org/collections/sap/sap_operations/sapinst_crl_role.html#ansible-collections-sap-sap-operations-sapinst-crl-role

kksat avatar Jul 28 '25 10:07 kksat