Jump to content

PrintableString

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by FGrosse (talk | contribs) at 08:29, 26 September 2012 (Linked to the String (computer science) article). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

A PrintableString is a Universal Tag in the ASN.1 notation. It is used to describe strings that do only consist of a specific printable subset of the ASCII character set.

Valid Character Set

The PrintableString definition does not include the at sign (@) or ampersand (&). This sometimes causes problems for naive implementers who attempt to put an SMTP email address into an X.509 digital certificate Distinguished Name.

According to the ISO/IEC 8824-1 (Specification of basic notation), the character set of PrintableString can be expressed as:

Name Graphic
Latin capital letters A,B, ... Z
Latin small letters a,b, ... z
SPACE (space)
APOSTROPHE '
LEFT PARENTHESIS (
RIGHT PARENTHESIS )
PLUS SIGN +
COMMA ,
HYPHEN-MINUS -
FULL STOP .
SOLIDUS /
COLON :
EQUALS SIGN =
QUESTION MARK ?

Usage Examples

Among others, PrintableStrings are used in