Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Loading csr or pem files in CertificateRequest #59192

Closed
amin1best opened this issue Sep 16, 2021 · 3 comments
Closed

Loading csr or pem files in CertificateRequest #59192

amin1best opened this issue Sep 16, 2021 · 3 comments
Labels
area-System.Security untriaged New issue has not been triaged by the area owner

Comments

@amin1best
Copy link

Hi,
In System.Security.Cryptography.X509Certificates.X509Certificate2 there is a Constructor for Loading cer and crt files such as:

X509Certificate2 Certificate= new X509Certificate2(@"C:\test.cer");

But in System.Security.Cryptography.X509Certificates.CertificateRequest there is no such constructor for loading csr or pem files.
How to load a csr or pem file in System.Security.Cryptography.X509Certificates.CertificateRequest?
Is there a plan to add this feature?

@dotnet-issue-labeler dotnet-issue-labeler bot added area-System.Security untriaged New issue has not been triaged by the area owner labels Sep 16, 2021
@ghost
Copy link

ghost commented Sep 16, 2021

Tagging subscribers to this area: @bartonjs, @vcsjones, @krwq, @GrabYourPitchforks
See info in area-owners.md if you want to be subscribed.

Issue Details

Hi,
In System.Security.Cryptography.X509Certificates.X509Certificate2 there is a Constructor for Loading cer and crt files such as:

X509Certificate2 Certificate= new X509Certificate2(@"C:\test.cer");

But in System.Security.Cryptography.X509Certificates.CertificateRequest there is no such constructor for loading csr or pem files.
How to load a csr or pem file in System.Security.Cryptography.X509Certificates.CertificateRequest?
Is there a plan to add this feature?

Author: amin1best
Assignees: -
Labels:

area-System.Security, untriaged

Milestone: -

@vcsjones
Copy link
Member

How to load a csr or pem file in System.Security.Cryptography.X509Certificates.CertificateRequest?

Right now there is nothing built-in to accomplish this. It could be done today using PemEncoding and the System.Formats.Asn1 package, but that is a bit low level.

Is there a plan to add this feature?

There is an existing request for this at #29547. We should work in that issue to move the proposal along and discuss needs / gaps / use cases / etc for the API proposal.

@bartonjs
Copy link
Member

Duplicate of #29547

@bartonjs bartonjs marked this as a duplicate of #29547 Sep 16, 2021
@dotnet dotnet locked as resolved and limited conversation to collaborators Nov 3, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-System.Security untriaged New issue has not been triaged by the area owner
Projects
None yet
Development

No branches or pull requests

3 participants