Quantcast
Channel: Security forum
Viewing all articles
Browse latest Browse all 12072

Wrap default enterprise CA policy module

$
0
0

I am creating a custom policy module using c# for an Enterprise CA.  I would like my custom policy module to wrap the default policy module relieving me from the requirement to implement all of the default policy module functionality in my custom policy module.  The following is my first attempt to implement this in my VerifyRequest method:

publicint VerifyRequest(

    string strConfig,

   int Context,

    int bNewRequest,

    int Flags)

{

CCertPolicy policy =newCCertPolicy();

policy.Initialize(strConfig);

int retval = policy.VerifyRequest(strConfig, Context, bNewRequest, Flags);

// Implement my custom code here to do what I want

return retval;

}

All requests processed by the above code are going into the "Pending Requests" bucket requiring manual approval.  This is against how the template is configured implying that my attempt to wrap the default policy module is not working correctly.

Is what I am trying to do even possible?

If so, what about my code needs to change to appropriately wrap the Enterprise default policy module?

Do I need to manually alter strConfig to indicate that the request needs to be handled like an Enterprise default policy module?

Thanks for your help!

Ken



Viewing all articles
Browse latest Browse all 12072

Trending Articles