Copy cert from tmp dir