Modified to replace truststore file