I was working on TLS implementations and found out that you can use any keystore or truststore without providing any password in java client or server. How does it prevent the server identity theft where someone can just copy the keystore from server and use that as their identity. If password would have been used then we might had some level of security on the keystore from unauthorized access.
One detailed description is provided in below link:
Do you not need a password to access a truststore (made with the java keytool)?