Seed7 - The extensible programming language
Seed7 FAQ Manual Screenshots Examples Libraries Algorithms Download Links
Libraries AES ARC4 Array ASN.1 Bigfile Bigint Bigrat Bin32 Bin64 Bitdata Bitmapfont Bitset Bitsetof Boolean Browser Bstring Bytedata Cards Category CC config Cgi Cgi dialog Char Charsets Cipher Clib_file Color CLI Commands Complex Console Crc32 Deflate DES Dialog Dir Draw Duration Echo Editline Enable_input Enable_io Enable_output Encoding Environment External_file File File system Float Font Forloop Ftp Getf Gethttp Gethttps Graph Graph_file Gzip Hash Hashsetof Hmac Html_ent Httpserv Idxarray Image Inflate Inflate file Inifile Integer Keybd Line Listener LZW Make Math Msgdigest Null_file Osfiles Picture utility Pixmap_file Pixmapfont PKCS #1 Poll Process Progs Propertyfile Rational Reference Ref_list Scanfile Scanstri Set Shell Smtp Sockbase Socket SQL base Stdio Strifile String Stritext Subrange Tar Text Time TLS/SSL Triple DES Unicode Utf16 Utf8 Vectorfont 3D Vector Wildcard Window Wrinum X.509 Xmldom Xml_ent Zip
Libraries
X.509 Source Code
 previous   up   next 

Function Summary
x509cert
getX509Cert (in string: stri)
Read a X.509 public key certificate from stri.
boolean
validateSignature (in x509cert: cert, in rsaKey: publicKey)
Validate the signature of a X.509 certificate cert with publicKey.
x509cert
createX509Cert (in rsaKey: publicKey, in bigInteger: serialNumber, in string: commonName, in string: country, in string: locality, in string: organization, in string: organizationUnit, in validityType: validity)
Create a X509 certificate that can be used for self signing.
certAndKey
selfSignedX509Cert (in rsaKeyPair: keyPair, in bigInteger: serialNumber, in string: commonName, in string: country, in string: locality, in string: organization, in string: organizationUnit, in validityType: validity)
Create a self signed X509 certificate from a RSA key pair.
certAndKey
selfSignedX509Cert (in string: commonName, in string: country, in string: locality, in string: organization, in string: organizationUnit)
Create a self signed X509 certificate.

Function Detail

getX509Cert

const func x509cert: getX509Cert (in string: stri)

Read a X.509 public key certificate from stri.

Returns:
the X.509 public key certificate.

validateSignature

const func boolean: validateSignature (in x509cert: cert, in rsaKey: publicKey)

Validate the signature of a X.509 certificate cert with publicKey.

Returns:
TRUE if the certificate can be validated, FALSE otherwise.

createX509Cert

const func x509cert: createX509Cert (in rsaKey: publicKey, in bigInteger: serialNumber, in string: commonName, in string: country, in string: locality, in string: organization, in string: organizationUnit, in validityType: validity)

Create a X509 certificate that can be used for self signing.

Parameters:
publicKey - Public RSA key to be entered to the certificate.
serialNumber - Serial number of certificate.
commonName - Common name of issuer and subject.
country - Country of issuer and subject (e.g. "AT" for Austria).
locality - Locality of issuer and subject (e.g. "Vienna").
organization - Organization of issuer and subject.
organizationUnit - Organization unit of issuer and subject.

selfSignedX509Cert

const func certAndKey: selfSignedX509Cert (in rsaKeyPair: keyPair, in bigInteger: serialNumber, in string: commonName, in string: country, in string: locality, in string: organization, in string: organizationUnit, in validityType: validity)

Create a self signed X509 certificate from a RSA key pair.

Parameters:
keyPair - Public and private RSA keys.
serialNumber - Serial number of certificate.
commonName - Common name of issuer and subject.
country - Country of issuer and subject (e.g. "AT" for Austria).
locality - Locality of issuer and subject (e.g. "Vienna").
organization - Organization of issuer and subject.
organizationUnit - Organization unit of issuer and subject.

selfSignedX509Cert

const func certAndKey: selfSignedX509Cert (in string: commonName, in string: country, in string: locality, in string: organization, in string: organizationUnit)

Create a self signed X509 certificate.

Parameters:
commonName - Common name of issuer and subject.
country - Country of issuer and subject (e.g. "AT" for Austria).
locality - Locality of issuer and subject (e.g. "Vienna").
organization - Organization of issuer and subject.
organizationUnit - Organization unit of issuer and subject.


 previous   up   next