Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Client certificate not sent to the server. #320

Open
GLHENO opened this issue May 13, 2020 · 4 comments
Open

Client certificate not sent to the server. #320

GLHENO opened this issue May 13, 2020 · 4 comments

Comments

@GLHENO
Copy link

GLHENO commented May 13, 2020

First of all, thanks for this fixture. When I try to send the client certificate, it doesn't seen to be sent to the server. On the server side, I use Apache httpd to set the client cert in "SSL_CLIENT_CERT" header and this header is empty (null). The Apache https configuration is correct as I can test this with curl command.

`
!define POST_BODY { {{{
Test Message
}}} }

|script |http client setup |
|$originalClient=|get original client|
|set client certificate from| files/test-cert.p12 |with password | changeme |key password | changeme |
|configure http test |

|script |http test |
|set content type|text/plain; Charset=UTF-8 |
|post |${POST_BODY}| to| https://dummyhost.example.com/api?isTest=true|
|check |response status|200 |
|show |response |
`

@tcnh
Copy link
Contributor

tcnh commented May 13, 2020

try changing files/test-cert.p12 to http://files/test-cert.p12 or provide a full path to the certificate

@GLHENO
Copy link
Author

GLHENO commented May 13, 2020

@tcnh I tried your suggestion. Unfortunately, it is still not sent.

`User-Agent: nl.hsac.fitnesse.fixture.util.HttpClient

SSL_CLIENT_CERT: (null)`

@tcnh
Copy link
Contributor

tcnh commented May 13, 2020

Hmm, I think adding your P12 certificate to a JKS keystore may solve your problem..

Could you try:

keytool -importkeystore -srckeystore test-cert.p12 -srcstoretype PKCS12 -destkeystore test-keystore.jks

and use test-keystore.jks instead of your P12 cert?

@GLHENO
Copy link
Author

GLHENO commented May 13, 2020

Tried that without luck. sorry.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants