Use options.ca only if config.casDir is set.

Close #221 
@mrutid 
@XavierVal