Plugging in existing CA Certificates in istio1.5

Hi All,

I am bit confused with the behavior of istio1.5 ,when it comes to changing the certificate.
I have installed istio with the following command and then created the sample bookinfo example
istioctl manifest apply --set profile=demo

I debugged the certificate and it has following values
Issuer: O=cluster.local
URI:spiffe://cluster.local/ns/bookinfo/sa/bookinfo-details

Then I have Plugging in existing CA Certificates and executed the following command
istioctl manifest apply --set values.global.mtls.enabled=true,values.security.selfSigned=true

I was expecting istiod to be redeployed but it’s not instead I see the following error in istiod logs

2020-04-05T16:57:23.696459Z info grpc: Server.Serve failed to complete security handshake from “192.168.251.235:53086”: remote error: tls: unknown certificate authority

kubectl get pods -n istio-system

grafana-5cc7f86765-zc9rv 192.168.251.238
istio-egressgateway-598d7ffc49-wb5lk 192.168.251.235
istio-ingressgateway-7bd5586b79-xj2sl 192.168.251.236
istio-tracing-8584b4d7f9-6wdxp 192.168.251.239
istiod-646b6fcc6-cvw5j 192.168.251.222
kiali-696bb665-f4l6h 192.168.251.240
prometheus-6c88c4cb8-84z8j 192.168.251.241

Once I restart all these component I dont see any exception.I was expecting that as it is using default sds ,it should be reflected automatically.

At the same my certificates are having the same value ,I was expecting it to change at the runtime.But it did not
Issuer: O=cluster.local
URI:spiffe://cluster.local/ns/bookinfo/sa/bookinfo-details

Then I deleted the pods in bookinfo and see the issuer change.
Issuer: C=US, ST=California, L=Sunnyvale, O=Istio, CN=Istio CA

I would be thankful for any kind of explanation

As shown on https://istio.io/docs/tasks/security/plugin-ca-cert/, plugging in an existing CA certificate should take place at the installation time.

Hi leitlang,

Thanks for your answer.Is it possible to change the expiration time of the token…?

regards
S

Which token do you plan to change its expiration time? The token issuer should be able to reissue a new token with a new expiration time.

sorry I was not very clear while asking .I mean to say defaul certificate expiration time.At the moment it is 24hrs.

The certificate expiration time may be customized. Examples can be found in https://github.com/istio/istio/issues/21944.

Hi Leitlang.

Thanks a lot.

regards
S