Correct usage of X509CertificateLoader
with PEM
#108783
-
I know about the following pages related to this topic:
In the past, I did something like this:
Is there any recommended way on how to use |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
At this time we do not expect to migrate the PEM cert+key loading functionality over to X509CertificateLoader. The new type only handles the two most common cases of the Since the CreateFromPem and CreateFromEncryptedPem functions are already "single-format" (and, even better, single-encoding), they did not get marked as |
Beta Was this translation helpful? Give feedback.
-
@bartonjs Speaking of dis-tidiness, would you then use |
Beta Was this translation helpful? Give feedback.
At this time we do not expect to migrate the PEM cert+key loading functionality over to X509CertificateLoader.
The new type only handles the two most common cases of the
X509Certificate2(bytes)
constructor (plain cert, PKCS#12/PFX), to help out those projects that really only ever expected it to be one or the other... then get surprised at runtime when they see the other, and "things happen".Since the CreateFromPem and CreateFromEncryptedPem functions are already "single-format" (and, even better, single-encoding), they did not get marked as
[Obsolete]
, and while "moving" them to X509CertificateLoader would allow for one kind of tidiness (all the load methods in one place) it would cause…