The VisibleString implementation should include the space and tilde characters.
Reference page 74 of the standard: Rec. ITU-T X.680 (02/2021)
Here the definition of VisibleString includes the following: "6 + SPACE"
Definition of VisibleString:
"The ASN.1 VisibleString type supports a subset of ASCII characters that does not include control characters."
See clause 6.3 and 6.4 of the ISO ASCII standard to see the definition of Control Characters, Character SPACE, and Graphic Characters (which includes ~)
An example is found in the open source asn1c compiler's implementation of VisibleString.c which includes these characters (Line 76):
The VisibleString implementation should include the space and tilde characters.
Reference page 74 of the standard:
Rec. ITU-T X.680 (02/2021)
Here the definition of VisibleString includes the following: "6 + SPACE"Definition of VisibleString: "The ASN.1 VisibleString type supports a subset of ASCII characters that does not include control characters."
See clause 6.3 and 6.4 of the ISO ASCII standard to see the definition of Control Characters, Character SPACE, and Graphic Characters (which includes ~)
An example is found in the open source asn1c compiler's implementation of VisibleString.c which includes these characters (Line 76):
Where Hex20 (space) and Hex7e (~) are included.