X509 name with specified encoding #27
Unanswered
microshine
asked this question in
Ideas
Replies: 1 comment 3 replies
-
I've got 3 ideas how we could do it
it doesn't match RFC2253, but allows specifying any encoding for any attribute const name = new Name("CN=p:Some name, O=u8:Home"); where prefixes are:
It doesn't allow specifying multiple encoding for one attribute type (eg const name = new Name("CN=Some name, O=Home", {
CN: NameEncoding.PrintableString,
O: NameEncoding.UTF8String,
});
const name = new x509.Name([
{
CN: [
{
printableString: "Some name",
},
]
},
{
O: [
{
utfString: "Home",
},
]
},
]); |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
For some cases, we need to determine what encoding we should use for name creation. I'd like to discuss here and decide how we could extend the
Name
class to support this featureThe current implementation uses harden coded logic and doesn't allow doing it dynamically.
IA5String
encoding is used forE
andDC
names, andPrintableString
orUTF8String
encoding depends on incoming string.Beta Was this translation helpful? Give feedback.
All reactions