Cleanup dirname
Add force and authentication params for x509_csr
More logic organisation for x509_cert type specs