on 11-29-2010 11:28 PM
Hello,
Apologies if this isnt the appropriate forum for this question. I have not identified any particular that looks appropriate to my question.
I am attempting to use the SAP Content Server HTTP Interface API
(http://www.google.co.nz/url?sa=t&source=web&cd=1&ved=0CBUQFjAA&url=http%3A%2F%2Fwww.sap.com%2Fturkey%2Fpartners%2Ficc%2Fscenarios%2Fpdf%2FHTTPAPI_E.pdf&rct=j&q=info%20sap%20content%20server%20http%20interface&ei=xzX0TMCxJIO8sQP8r5zuCw&usg=AFQjCNG7HakBMThit1hHVNnkQGgxAGGdMg&cad=rja)
from a standalone application.
The issue is that when invoking the putCert Http Server interface request as per the API documentation the server answers with a 501 error response.
HTTP/1.1 500 (Internal error)
Content-Type: text/html
Server: Microsoft-IIS/7.0
X-ErrorDescription: "Security: format error of certificate"
X-ContentServer: contentServer="sapdoc-dev.aklc.govt.nz";contentServerPort="80";pVersion="0046";id="SAP HTTP Content Server";
X-Powered-By: ASP.NET
Date: Sun, 28 Nov 2010 21:07:29 GMT
Connection: close
I am attempting to put a public certificate that I generated using the java keytool program (generated and then exported) into the SAP Content Server so that I am able to send subsequent requests to create and retreive content from the server.
The certificate looks valid and conforms to the details identified in the API document.
$ keytool -printcert -file pjt.cer
Owner: CN=Phil, OU=AucklandCouncil, O=AucklandCouncil, L=Auckland, ST=NZ, C=NZ
Issuer: CN=Phil, OU=AucklandCouncil, O=AucklandCouncil, L=Auckland, ST=NZ, C=NZ
Serial number: 4ced8983
Valid from: Thu Nov 25 10:54:11 NZDT 2010 until: Wed Feb 23 10:54:11 NZDT 2011
Certificate fingerprints:
MD5: E1:E8:AB:FA:91:2C:8C:82:1C:F1:C9:B2:36:F9:B4:82
SHA1: 8A:07:06:29:C3:B3:68:05:D6:44:89:AE:31:3C:55:96:73:6A:C3:60
Signature algorithm name: SHA1withDSA
Version: 3
The certificate has been generated a few different ways and all give the same error when invoking putCert.
The putCert request has been invoked using different tools and all give the same error.
Its not clear to me if I can/cant use the interface from a standalone client. Does anyone know?
Does anyone have an idea how I can find out why the server is rejecting my putCert request.
Thanks Phil
Hi,
I have found solution.
You have to export your .cer file as pkcs#7 (.p7b) file.
Open your .cer file, go to Details tab, click Copy to file... and select Cryptographic Message Syntax Standart - PKCS#7 Certificates (.p7b).
Use .p7b file with putCert command. It works for me.
Slava
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I have the same issue. Have you resolved it?
Slava
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
9 | |
9 | |
6 | |
6 | |
6 | |
5 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.