Question: I am implementing a Delphi Windows Service as a server and wants to enable TLS/SSL for secure communication. for this I have used `TIdServerIOHandlerSSLOpenSSL` component and I am able to set up secure communication between client and server.

My question is related to how I have loaded the certificate and key. I have written below code to load certificate and key file :

```
  IOHandler.SSLOptions.CertFile := 'localhost.cert.pem';    // Certificate file
  IOHandler.SSLOptions.KeyFile := 'localhost.key.pem';      // Key File    
  IOHandler.SSLOptions.RootCertFile := 'ca.cert.pem';       // Root certificate

```

All the files (cert and key) are placed in the application directory. But one of the requirement is to read certificates from Windows certificate store.

How could I read certificate from Windows certificate store inside Delphi code and assign those certificates to `IOHandler.SSLOptions`?

Answer: 
As long as the API is attached to an open product you can always call it without a subscription, this is by design. If you want to enforce a subscription key to be sent, you have either to remove it from that open product or mark it as a subscription required.

Adding a policy is really inefficient and dirty for the following reasons

1. You will need to keep track all the subscription keys values (removed, added, regenerated...etc).
2. All the other polices precedes the checking policy will be executed
before the request is denied.
3. if you decide to change the subscription key header name, you will
have to go through all the checking policies and modify them.
I test it in my side and also same feature as yours. When I use two products(one enable `Requires subscription` and the other disable `Requires subscription`) and both of them has one api in it. The api will not check subscription key even though I have enabled its `Subscription required`.

As a workaround, you can add a policy in your api `<outbound>` like below. The added policy is used to check the subscription key manually.

[![enter image description here](https://i.stack.imgur.com/0YSu8.png)](https://i.stack.imgur.com/0YSu8.png)