Fix #106 when using wildcard certificate on multiple vhosts

When using wildcard certificate, the file creation resources are defined multiple times. Adding a checking before defining the resources should fix this issue.