-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Route certificate ignored #11361
Comments
@weliang1 can you reproduce this please? |
Maybe this can help... https://lists.openshift.redhat.com/openshift-archives/users/2016-October/msg00130.html |
@knobunc let me try |
Follow above steps, I can replicate same issue in my env: [root@ip-172-18-8-180 ~]# CA=/etc/origin/master
You can add applications to this project with the 'new-app' command. For example, try:
to build a new example application in Ruby.
< HTTP/1.1 200 OK <
< HTTP/1.1 200 OK <
Server https://ip-172-18-8-180.ec2.internal:8443 |
@mvlach so when you used the default certificate - was it a wildcard one (e.g. @weliang1 your test |
@mvlach aah just saw your mailing list message as well. So here's a simple test I wrote up: The test assumes you have a service setup called If you set it all up properly, here's the output that you should see:
As you can see the custom.cert.test returns the certificate for |
@ramr yes all certificates was wildcard. We changed the certificate because of alphaSSL certification authority problems. The problem I think is only with wildcard certificates. HAProxy pick the first eligible certificate. |
@mvlach yeah if they are all wildcard (for the same subdomain ala Now there have been some changes recently onhow the certs are presented and used since PR #11217 merged. This is on master though and assuming you want a default certificate to be used if nothing matches, one solution I can think of is:
HTH |
@ramr my test log is not in good format and you will not see it clearly until you click edit button, after "oc create -f https://raw.githubusercontent.com/weliang1/Openshift_Networking/master/test50.json", I did "oc edit route xxx" to a specify other certificate, according to @mvlach, the new certificate should be returned, but it did not. I did not use wildcard certificate, I used exactly host name as shown in my test log above. |
@weliang1 works for me - I created a sample repo for testing this: Its a bit rough in that it expects a service setup called |
@ramr after reconfiguring my services/pods/routes json file, I make it work fine in my env too. |
Issues go stale after 90d of inactivity. Mark the issue as fresh by commenting If this issue is safe to close now please do so with /lifecycle stale |
Stale issues rot after 30d of inactivity. Mark the issue as fresh by commenting If this issue is safe to close now please do so with /lifecycle rotten |
Rotten issues close after 30d of inactivity. Reopen the issue by commenting /close |
When I changed the certificate for the edge termination type, certificate didn't changed. Router still serves the default certificate.
Version
oc v1.3.0
kubernetes v1.3.0+52492b4
features: Basic-Auth GSSAPI Kerberos SPNEGO
Server ********
openshift v1.3.0
kubernetes v1.3.0+52492b4
Steps To Reproduce
Current Result
Old certificate is returned
Expected Result
The new certificate will be returned
The text was updated successfully, but these errors were encountered: