-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
ssl client certs #63
Comments
What is the exact use case? |
At the BBC we have a number of web services using SSL encryption (HTTPS) which the client can only communicate through with an SSL cert. JMeter and Tsung support such certification, but I am looking for a tool where I can write tests as code (not XML). I don't know enough about Go to add it in myself, but I intend to learn Go as I eventually want to contribute to an OS load-test tool. |
This functionality can be added relatively easily. I'll try to find the time to do it soon. |
Many Thanks. |
@AidyLewis: Please download the latest release and let me know if it solves your problem. |
Tested an endpoint without cert and I received a handshake failure in the results. using: I will try another .pem. @AidyLewis |
Please include the inputs and outputs of your test runs. I suggest you run it as such:
|
Hi, I've attempted every conceivable way of converting a p12 to pem. echo "GET https://api.stage.bbc.co.uk/locator/locations?order=importance&s=NW9%207NT&a=true" | vegeta attack -cert="dev-cert.pem" -duration=1s -rate=10 | tee results.bin | vegeta report |
I am no expert in openssl but have you converted the certificate with the following? I presume you are able to connect to your server with |
I have not forgotten about this, I'll re-attempt it again this afternoon. |
Hi, I have managed to curl on the dev svn repo which uses ssl curl --cert dev-cert.pem --cacert ca.pem https://repo.dev.bbc.co.uk/load-test-team/cloud-load-test/trunk/bake-scripts/set-up But still unable to use the vegeta cert switch: echo "GET https://repo.dev.bbc.co.uk/load-test-team/cloud-load-test/trunk/bake-scripts/set-up" | vegeta attack -cert="dev-cert.pem" -duration=1s -rate=10 | tee results.bin | vegeta report .... Many Thanks Aidy |
Historically, there have been a number of issues with SSL code in the Go standard library. I can only attempt to solve this if your provide me with a certificate to debug with. |
Hi @tsenart It is impossible for me to provide you with a BBC cert, so the options are:
I am learning Go at the moment, so I will have a go at debugging it myself (but it may take some time). Many Thanks Aidy ps https://github.com/BBC/load-test-artefacts#vegeta |
I see in your tests you have a cert.pem and a key.pem. Do I need to pass these files separately? Also do I not need a ca.pem? |
What do you mean, you have to pass these files directly? Have a look at http://golang.org/pkg/crypto/tls/#LoadX509KeyPair which would be used for a server. |
It looks like we need to pass the public cert file and the private key separately. I currently have them bundled in one pem. So wouldn't we need to do: Which then get passed into LoadX509KeyPair function? Aidy |
vegeta does not support ssl client certs.
but vegeta sets:
|
@pascalhofmann: Contributions welcome! I'm quite busy the following weeks... :-) |
Sorry, I'm very busy too. :( I ended up deactivating the client certificate check for the load testing… |
Is this just a matter of swapping the correct library in? |
@aidylewis: Would you mind building this branch and trying it out? |
Hi @tsenart Brilliant. I will test it out tomorrow, while I am at work. |
@aidylewis: Any luck? |
I can connect through wget, but not through vegata
|
OK, let's try to figure this out over chat: https://gitter.im/tsenart/vegeta |
After @tsenart fix, I converted a p12 to a pem with the openssl command:
This bundles the private key and public cert in the pem. I then ran:
|
@aidylewis: Can you download the pre release binaries again and try to use it without specifying the |
OK |
Yep, works
Thanks for all you help @tsenart |
Great! :) |
And sorry for taking more than a year (!!!) to fix this. |
Hi @tsenart I am receiving this error on a site: "x509: certificate signed by unknown authority" Do I need to pass a ca.pem as well? |
That means that site's certificate isn't signed by any of the trusted CAs in your system. If you open that site in your browser, is it trusted? |
Good point. No. |
Well, then, what is the expected behaviour for you? Would you want a flag that disables certificate verification? |
I was too shy to ask, but that'd be nice. In return I could write a BBC technology blog that includes Vegeta if you were interested and I don't mind giving a recurring "tip" as a thank you for your work. |
Hehe, don't be shy! You didn't need to offer me such thing, but I won't say On Thu, 26 Nov 2015 at 19:44, aidylewis notifications@github.com wrote:
|
I'll ping you offline about the blog. |
Hi @tsenart I cannot find your email on the internet. Mine is adrian dot lewis at bbc dot co dot uk. |
Even i am facing the same issue ."x509: certificate has expired or is not yet valid: current time". Tried accepting the certificates through browser to make it trusted but it didnt . Is the disable SSL verification option available in vegeta. Can you please calrify |
@sattishv I believe the flag that you need to disable SSL verification is |
Thanks Will check disabling it
…On Wed, Mar 2, 2022 at 9:38 PM Stephen Sun ***@***.***> wrote:
@sattishv <https://github.com/sattishv> I believe the flag that you need
to disable SSL verification is insecure. Set -insecure=true and that
should work for you.
—
Reply to this email directly, view it on GitHub
<#63 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABY2VGKEKIXHHLPHIUPCAPTU56G7TANCNFSM4AT6WRKA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you were mentioned.Message ID:
***@***.***>
--
with regards,
Sattish
9940080070
|
I wondered if you'd ever thought of supporting ssl client certs?
The text was updated successfully, but these errors were encountered: