setting DNSName in subjectAltName extension
I need to set DNSName in server subjectAltname extensions, but having difficulty getting the server's name into this field. I've read this: https://access.redhat.com/knowledge/docs/en-US/Red_Hat_Certificate_System/8.... I can set the RFC822name value using this (see table B-15) $request.requestor_email$ by making sure there's a requestor_email=something in the GET from the RA. There really isn;t anything that corresponds to what DNSName should be but I expected $request.subject$ would do; I added subject=some.thing.dom, but no, I get "$request.subject$" as a literal string. I also tried the obviously wrong example in Example B.1 (before the table) - policyset.serverCertSet.9.default.params.subjAltExtPattern_1=$request.SAN1$ same thing, $request.SAN1$ literal. I can set subjAltExtPattern_1 to my own literal string, but obviously that's counterproductive. I can set it to $request.requestor_email$ and get the email address in DNSName - if I didn't have cases where BOTH subjectAltName fields were needed I'd just re-purpose requestor_email. So - what works and how? I'm stumped. Any ideas appreciated. Thanks, ==mwh
On 08/14/2012 03:26 PM, Mike Helm wrote:
I need to set DNSName in server subjectAltname extensions, but having difficulty getting the server's name into this field.
I've read this: https://access.redhat.com/knowledge/docs/en-US/Red_Hat_Certificate_System/8....
I can set the RFC822name value using this (see table B-15) $request.requestor_email$ by making sure there's a requestor_email=something in the GET from the RA. There really isn;t anything that corresponds to what DNSName should be but I expected $request.subject$ would do; I added subject=some.thing.dom, but no, I get "$request.subject$" as a literal string.
I also tried the obviously wrong example in Example B.1 (before the table) - policyset.serverCertSet.9.default.params.subjAltExtPattern_1=$request.SAN1$ same thing, $request.SAN1$ literal.
I can set subjAltExtPattern_1 to my own literal string, but obviously that's counterproductive. I can set it to $request.requestor_email$ and get the email address in DNSName - if I didn't have cases where BOTH subjectAltName fields were needed I'd just re-purpose requestor_email.
So - what works and how? I'm stumped. Any ideas appreciated. Thanks, ==mwh
_______________________________________________ Pki-users mailing list Pki-users@redhat.com https://www.redhat.com/mailman/listinfo/pki-users
something like this should work fine: policyset.encryptionCertSet.8.constraint.class_id=noConstraintImpl policyset.encryptionCertSet.8.constraint.name=No Constraint policyset.encryptionCertSet.8.default.class_id=subjectAltNameExtDefaultImpl policyset.encryptionCertSet.8.default.name=Subject Alt Name Constraint policyset.encryptionCertSet.8.default.params.subjAltNameExtCritical=true policyset.encryptionCertSet.8.default.params.subjAltNameNumGNs=8 # policyset.encryptionCertSet.8.default.params.subjAltExtGNEnable_0=true policyset.encryptionCertSet.8.default.params.subjAltExtType_0=IPAddress policyset.encryptionCertSet.8.default.params.subjAltExtPattern_0=10.1.2.3 # policyset.encryptionCertSet.8.default.params.subjAltExtGNEnable_1=true policyset.encryptionCertSet.8.default.params.subjAltExtType_1=RFC822Name policyset.encryptionCertSet.8.default.params.subjAltExtPattern_1=$request.SAN1$ # policyset.encryptionCertSet.8.default.params.subjAltExtGNEnable_2=true policyset.encryptionCertSet.8.default.params.subjAltExtType_2=RFC822Name policyset.encryptionCertSet.8.default.params.subjAltExtPattern_2=$request.requestor_email$
Marc Sauton writes:
I need to set DNSName in server subjectAltname extensions, but having difficulty getting the server's name into this field. ... I also tried the obviously wrong example in Example B.1 (before the table) - policyset.serverCertSet.9.default.params.subjAltExtPattern_1=$request.SAN1$ same thing, $request.SAN1$ literal.
something like this should work fine:
policyset.encryptionCertSet.8.constraint.class_id=noConstraintImpl policyset.encryptionCertSet.8.constraint.name=No Constraint policyset.encryptionCertSet.8.default.class_id=subjectAltNameExtDefaultImpl policyset.encryptionCertSet.8.default.name=Subject Alt Name Constraint policyset.encryptionCertSet.8.default.params.subjAltNameExtCritical=true policyset.encryptionCertSet.8.default.params.subjAltNameNumGNs=8 # policyset.encryptionCertSet.8.default.params.subjAltExtGNEnable_0=true policyset.encryptionCertSet.8.default.params.subjAltExtType_0=IPAddress policyset.encryptionCertSet.8.default.params.subjAltExtPattern_0=10.1.2.3 # policyset.encryptionCertSet.8.default.params.subjAltExtGNEnable_1=true policyset.encryptionCertSet.8.default.params.subjAltExtType_1=RFC822Name policyset.encryptionCertSet.8.default.params.subjAltExtPattern_1=$request.SAN1$
I tried exactly this (see above). I think it is probably wrong, because they probably meant something else other than SAN1, like subject, but neither will work. (Look at the table that follows in the doc, or look at the 8.1 doc where I believe the example is corrected). The only variable I've succeeded in getting values passed thru is "requestor_email". Why? What am I missing? These variables arrive thru the GET list from the RA, btw.
# policyset.encryptionCertSet.8.default.params.subjAltExtGNEnable_2=true policyset.encryptionCertSet.8.default.params.subjAltExtType_2=RFC822Name policyset.encryptionCertSet.8.default.params.subjAltExtPattern_2=$request.requestor_email$
Thanks, ==mwh
Mike Helm writes:
Marc Sauton writes:
I need to set DNSName in server subjectAltname extensions, but having difficulty getting the server's name into this field.
something like this should work fine: policyset.encryptionCertSet.8.default.params.subjAltExtPattern_1=$request.SAN1$
I tried exactly this (see above). I think it is probably wrong, because they
We solved this by finding out how to define a variable that can be used for filtering. How exactly this was found out I don't know - my colleague (cc'd) discovered it & mentioned it to me. this process might be described in the admin book somewhere, but I missed it. Here's an extract from a profile .cfg file: input.i3.name=Generic Input input.i3.params.gi_display_name0=HostName 1 ... input.i3.params.gi_param_enable0=true ... input.i3.params.gi_param_name0=csrDNSName1 ... input.i3.params.gi_param_name1=csrDNSName2 input.i3.params.gi_param_name2=csrDNSName3 ... input.params.gi_display_name0=HostName 1 ... input.params.gi_param_enable0=true ... input.params.gi_param_name0=csrDNSName1 ... policyset.serverCertSet.9.default.params.subjAltExtPattern_1=$request.requestor_email$ policyset.serverCertSet.9.default.params.subjAltExtPattern_0=$request.csrDNSName1$ ... policyset.serverCertSet.9.default.params.subjAltExtType_1=RFC822Name policyset.serverCertSet.9.default.params.subjAltExtType_0=DNSName ...
participants (2)
-
Marc Sauton -
Mike Helm