pki: process template files not in-place

Change-Id: Iaba7b66633eb92b0b6602fb17218d5e844256dd3
Signed-off-by: Alon Bar-Lev <alonbl@redhat.com>