I have found a fix for above issue. The trust store password must be assigned with a variable from parameter context, e.g TRUST_STORE_PASSWORD. And when creating a stateless processor, we need to add new sensitive variable TRUST_STORE_PASSWORD. When execute stateless running it will pass the variable to the flow saved in nifi registry.