def import_smtcert_12(smt): """Import the SMT certificate on SLES 12""" key_chain = '/usr/share/pki/trust/anchors' if not smt.write_cert(key_chain): return 0 if not update_ca_chain(['update-ca-certificates']): return 0 return 1
def import_smtcert_11(smt): """Import the SMT certificate on SLES 11""" key_chain = '/etc/ssl/certs' if not smt.write_cert(key_chain): return 0 if not update_ca_chain(['c_rehash', key_chain]): return 0 return 1