How do you setup and retrieve encryption and signing certificates in IIS for OpenIddict?

You can use this code get list of certificate.

X509Store store = new X509Store(StoreName.My, StoreLocation.LocalMachine);

store.Open(OpenFlags.ReadOnly);

foreach (X509Certificate2 certificate in store.Certificates){
  //TODO's
 }

Then you can add certificate in the foreach.