Skip to content

derUtf8String ​

derUtf8String ​

Encodes a DER UTF8String (tag 0x0c).

ts
function derUtf8String(
	value: string,
): Uint8Array

Parameters

  • value: string

Throws

  • on a lone surrogate, which has no UTF-8 encoding.

Released under the MIT License.