First off, we already have a template for bio ssl, see bio-ssl template.
But if you would like to use your own template, the way you should do this is the following:
In your template "dev". Create a file called server-fragment.xml in the conf dir like this:
Code:
<?xml version='1.0' encoding='utf-8'?>
<Server>
<Service name="Catalina">
<add:Connector port="${https.port:8443}" protocol="HTTP/1.1" SSLEnabled="true"
maxThreads="150" scheme="https" secure="true"
clientAuth="false" sslProtocol="TLS"
keystoreFile="conf/mykeystore"
keystorePass="mypassword" />
</Service>
</Server>
By default on creation, if you don't pass in the properties on the command-line or in a properties file, it will set both bio.https.port and dev.https.ports to the default. In this case 8443 (see bio or bio-ssl template for the reference).
In this execution I want my https port to be 9009, so I am telling it to set the property to 9009 for both templates:
Code:
tcruntime-instance.bat create -t bio -t dev -p bio.https.port=9009 -p dev.https.port=9009
The result will be an instance create with both the bio connector and the dev connector in server.xml and you will have the properties bio.https.port=9009 and dev.https.port=9009 added to the catalina.properties file.