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

Implemented certificate template export and partially import #75

Merged
merged 12 commits into from
May 17, 2024

Conversation

Crypt32
Copy link
Collaborator

@Crypt32 Crypt32 commented May 17, 2024

Export is fully implemented, including:

  • export and import from certificate template registry cache
  • export and import from Active Directory
  • export and import from [MS-XCEP] template information

Export is implemented in [MS-XCEP] data format. It is portable and ready to import into IX509EnrollmentPolicyServer interface for COM interop.

Import is implemented partially. That is, you can reconstruct an instance of CertificateTemplate class from exported serialized string, however import into AD (overwrite) is not yet implemented.

Crypt32 added 12 commits May 13, 2024 13:58
…only [MS-XCEP] format is supported. Import is untested.
* added legacy IX509CertificateTemplate reference with abstration via IAdcsCertificateTemplate interface. Not tested.

* some COM interop fixes

* fixed other COM interop cast issues

* fixed remaining IObjectId casts

* a follow up

* fixed key usage extension and CNG key usage handling

* deprecated Description property

* fixed IX509Extension handling

* updated accessors

* cleanup

* refactoring

* drafted sample unit tests for IAdcsCertificateTemplate

* fixed numerous issues in DsCertificateTemplate and RegCertificateTemplate and updated unit tests. CertEnrollCertificateTemplate is not tested yet.

* addressed issues with CertEnrollCertificateTemplate, tests are passed

* added few more tests. All passed
…d whenChanged attribute handling in extended properties
@Crypt32 Crypt32 linked an issue May 17, 2024 that may be closed by this pull request
@Crypt32 Crypt32 merged commit 4ef443e into master May 17, 2024
@Crypt32 Crypt32 deleted the CertTemplate-Export branch May 17, 2024 09:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Provide certificate template export functionality
1 participant