YaST2 Developers Documentation: Configuration of CAs

Configuration of CAs

include/ca-management/util.ycp
Util definitions

This module has an unstable interface.

Imports

  • CaMgm
  • Hostname
  • Label
  • Popup
  • Wizard
  • YaPI::CaManagement

Includes

  • ca-management/popup.ycp

Local Functions

local getenv (string environment) -> string

Get contents of environment variable.

Parameters:
environment name of requested variable
Return value:
environment variable contents
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 selectFile (boolean newFile, string filterString, string headline) -> string

Asking for a existing or new file

Parameters:
newFile
filterString
headline
Return value:
the pathname or a empty string if aborted
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 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, string subjectAltName) -> boolean

Dialog for exporting CA/Certificate/CRL to LDAP

Parameters:
kind
CAname
commonName
email
certificate
subjectAltName
Return value:
true ( success )
local exportCAtoFile (string CAname) -> void

Dialog for exporting CA to file

Parameters:
CAname
Return value:
true ( success )
local exportCRLtoFile (string CAname) -> void

Dialog for exporting CRL to file

Parameters:
CAname
Return value:
true ( success )
local exportCertificateToFile (string CAname, string certificate) -> void

Dialog for exporting Certificate to file

Parameters:
CAname , certificate
certificate
Return value:
true ( success )
local importCertificateFromDisk () -> boolean

importCertificateFromDisk() - Importing certificate from disk

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
local importRequestFromDisk (string CaName) -> boolean

importRequestFromDisk() - Importing request from disk

Parameters:
CaName
Return value:
success
local importCAFromDisk () -> boolean

importCAFromDisk() - Importing CA from disk

Return value:
success