File keystoreFile = template.getKeystoreFile();
if (template.shouldCreateSslKey()) {
// TODO: Unify with additional keys?
// But be careful.. this is normally a shared key across all instances
ManagedKeystore httpsKey = configDir.addChild(ManagedKeystore.class);
httpsKey.path = keystoreFile;
httpsKey.tagWithPublicKeys = template.getModel();
httpsKey.alias = ManagedKeystore.DEFAULT_WEBSERVER_ALIAS;
httpsKey.key = template.findPublicSslKey();
}