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

test: certificate fixes for fedora #5877

Merged
merged 1 commit into from
Jul 6, 2016

Conversation

heyitsanthony
Copy link
Contributor

fedora doesn't support ECDSA and darwin's curl wants pkcs12 certs

Some systems don't support EC due to patent issues, but the tests
should still work.

Fixes etcd-io#5744
@@ -139,10 +139,10 @@ func cURLPrefixArgs(clus *etcdProcessCluster, method string, req cURLReq) []stri
if clus.cfg.clientTLS != clientTLSAndNonTLS {
panic("should not use cURLPrefixArgsUseTLS when serving only TLS or non-TLS")
}
cmdArgs = append(cmdArgs, "--cacert", caPath, "--cert", certPath, "--key", privateKeyPath)
cmdArgs = append(cmdArgs, "--cacert", caPath, "--cert", pkcs12Path+":123", "--cert-type", "P12")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is +":123"?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

password; I tried making it with a blank password but curl still complained asking for one

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok got it. Thanks.

@gyuho
Copy link
Contributor

gyuho commented Jul 5, 2016

lgtm. Defer to @xiang90

@heyitsanthony heyitsanthony changed the title test: certificate fixes for fedora and darwin test: certificate fixes for fedora Jul 5, 2016
@heyitsanthony
Copy link
Contributor Author

nuking the P12 cert commit since CI doesn't support it

@xiang90
Copy link
Contributor

xiang90 commented Jul 5, 2016

lgtm

@heyitsanthony
Copy link
Contributor Author

holding off on merge until I can test on a fedora vm tonight

@heyitsanthony
Copy link
Contributor Author

tested and works, merging

@heyitsanthony heyitsanthony merged commit a78cdea into etcd-io:master Jul 6, 2016
@heyitsanthony heyitsanthony deleted the rsa-fixtures branch July 6, 2016 20:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants