security0python.module
fault.format

Text frames for Certificates, Keys, and Contexts.

sys
import

key_fields
data

key_fields = set([
	'algorithm',
	'key-id', # Hash of key if necessary.
])

certificate_fields
data

certificate_fields = set([
	# Security Context data regarding its validity.
	'validation',

	'type', # Usually X.509
	'interval', # validity; not-before, not-after

	'serial', # Unique identifier.
	'signature-type',
	'signature-algorithm',

	'issuer-organization',
	'issuer-name', # domain

	'subject-organization',
	'subject-name', # domain

	'extension-names',

	'revocations', # CRL

	'key-usage',
	'key-algorithm',
])

mkcertview
function

mkcertview(record)

Create record-frame for a certificate.

pframe
function

pframe(data)