Can we use 18310 & 18312 port for Virtual server when will apply certificate over it
Protocol as https .
Of course you can. To apply a HTTPS scheme to one specific VS you need to specify a client SSL profile on it. After that you will be able to communicate using TLS protocol.
REF - https://support.f5.com/csp/article/K14783
If you need to reopen a new HTTPS connection from the F5 to the backend server, then you also need to apply a Server SSL profile
REF - https://support.f5.com/csp/article/K14806