YaST2 Developers Documentation: Configuration of CAs



functions
files
intro

Configuration of CAs

include/ca-management/util.ycp
Util definitions
  • Stefan Schubert

Imports

  • Hostname
  • Label
  • YaPI::CaManagement

Includes

  • ca-management/popup.ycp

Local Functions

local getCountryList () -> list<term>

Creates Country items

Return value:
a list country items formated for a UI table

local check_mail_address (string address) -> boolean

See RFC 2822, 3.4 But for now, no-spaces@valid_domainname

Parameters:
address an address to check
Return value:
valid?check_mail_address

local isBlank (string s) -> boolean

returns true if char is blank (newline, tab or space)

Parameters:
s single char string
Return value:
blank/non blank

local strip (string str) -> string

removes trailing and leading blank chars from string. eg: " as df " -> "as df"

Parameters:
str string source string
Return value:
stripped string

local getPassword (string CAname) -> string

Dialog for asking a CA password. Returns the password without asking if is has already input before.

Parameters:
CAname
Return value:
password

local exportToLDAP (string kind, string CAname, string commonName, string email, string certificate) -> boolean

Dialog for exporting CA/Certificate/CRL to LDAP @param "CA" "CRL" "CERT"

Parameters:
kind
CAname
commonName
email
certificate
Return value:
true ( success )

local exportCAtoFile (string CAname) -> void

Dialog for exporting CA to file @param CAname

Parameters:
CAname
Return value:
true ( success )

local exportCRLtoFile (string CAname) -> void

Dialog for exporting CRL to file @param CAname

Parameters:
CAname
Return value:
true ( success )

local exportCertificateToFile (string CAname, string certificate) -> void

Dialog for exporting Certificate to file @param CAname, certificate

Parameters:
CAname
certificate
Return value:
true ( success )

local importCertificateFromDisk () -> boolean

importCertificateFromDisk() - Importing certificate to floppy

Return value:
success

local exportCommonServerCertificate (string CAname, string certificate, string commonName) -> boolean

exportCommonServerCertificate() - Exporting common server certificate to the local machine

Parameters:
CAname
certificate
commonName
Return value:
success

YaST2 Developers Documentation