Choosing the Correct Certificate for Signing

Question:

If I have several digital certificates (DC's) with the same email address in my DC store on the same PC, how can I choose only one of those DC's to sign the outbound msg?

I only want the msg signed by one DC even though several DC's have the same email address.

I have only seen Chilkat examples of DC's for signing selected by the "from" address and this would select all the DC's with the same address or is there another way of doing this?

Answer:

You can locate the certificate based on serial number by calling FindCertBySerial, if you know what the serial number of the certificate is that you want to use.