Using the Cache Server with Third-Party Content Servers
Use
From SAP release 4.6B, the cache server can be used in conjunction with the SAP Content Server (see SAP Note 216419).
If you want to use signed URLs, the interaction between the Content Server and the cache server requires some adjustments to the Content Server interface.
These and other adjustments have been made in the SAP Content Server. The facilitate this, the interface version 0046 has been developed for the SAP Content Server.
To ensure that the cache server can be used without any restrictions, including with third-party content servers, the cache server has to be able to use all the commands that are defined for the interface version 0045 even if version 0046 is being used. The content server, for its part, has to be able to implement the getCert command.
Result:
The list of certificates that are active for a specified repository is returned.
Client -> Server
The client sends a HTTP GET request with the following parameters:
|
Parameter |
Optional/Mandatory |
Meaning |
|
ContRep |
mandatory |
Content Repository |
|
PVersion |
mandatory |
Interface version |
Server -> Client:
The body of the response contains information on whether the signature is active (1) or inactive (2). It also may return the list of active certificates.
In addition to the (optional) description of the certificates, the data that is transferred to the content server in the body with the corresponding putCert command is returned in hexadecimal form. The list has the following format:
security="<value>";CRLF<key1>="<value11>";<key2>="<value12>";...<keyN>="<value1N>";CRLF
<key1>="<value21>";<key2>="<value22>";...<keyN>="<value2N>";CRLF
...
<key1>="<valueM1>";<key2>="<valueM2>";...<keyN>="<valueMN>;"CRLF
The following keys are used for the descriptions of the certificates:
|
Key |
Optional/Mandatory |
Meaning |
|
Subject |
optional |
Description |
|
Issuer |
optional |
Issuer of the Certificate |
|
serialNumber |
optional |
Serial number |
|
notBefore |
optional |
Invalid from |
|
notAfter |
optional |
Valid to |
|
keyInfo |
optional |
Information |
|
Certificate |
Mandatory |
Certificate from putCert |
|
(hex-encoded) |
The SAP Content Server returns all the parameters described here. It is sufficient for interoperation with the cache that a value is assigned to the parameter certificate.
Also, in the header of the response to a get command, the content server must return the security level that was set when the document was created.
|
Key |
Optional/Mandatory |
Meaning |
|
X-docProt |
Mandatory |
Security Level |
Adjustments are necessary only if the following apply:
-
You are using a third-party content server
-
You want to use the SAP Cache Server
-
You want to implement read access with signed URLs
