Set the default DN suffix (Distinguished Name components such as O, L, C, …)
appended to every auto-generated certificate subject.
Use this function instead of directly assigning to defaultCertificateSubject
when consuming the library as an ESM module, because ESM namespace bindings
are read-only from the outside and can only be mutated from within the module
that declared them.
Parameters
value: string
e.g. "/O=MyOrg/L=MyCity/C=US"
Returns void
Throws
if the value is empty or does not match the expected /KEY=VALUE/… pattern.
Set the default DN suffix (Distinguished Name components such as O, L, C, …) appended to every auto-generated certificate subject.
Use this function instead of directly assigning to
defaultCertificateSubjectwhen consuming the library as an ESM module, because ESM namespace bindings are read-only from the outside and can only be mutated from within the module that declared them.