Can we load multiple Certificates & Keys in a Key Store?

后端 未结 2 1450
谎友^
谎友^ 2020-12-05 17:21

Can we load multiple Certificates & Keys in a Key Store?

Is it always required to load only Pairs (i.e. Certificates & Keys together)?

If a Key Stor

2条回答
  •  时光取名叫无心
    2020-12-05 18:02

    You can have a keystore with as many certificates and keys as you like.

    If there are multiple certificates in a keystore a client uses as its truststore, all certificates are being looked at until one is found that fits. You can look at the preinstalled certificates, they are in /lib/security/cacerts. It's just a big collection of root CAs' certificates.

    Regarding the keys I don't know. I'd reckon the client uses a key that is signed by the same CA as the certificate that is provided by the server and if there are multiple, the first is used. But I can't say that for sure.

提交回复
热议问题