|
Before you begin - Decide what identifiers you wish to add to the Subject Name Alternate
extension.
- Select the registered OID value to use to represent your data
string. Check the appropriate standards organization (ISO or ITU).
If not already registered, register your own OID.
- Select which certificate templates you will update to add the
Subject Name Alternate extension.
- Decide whether to use a sample INSERT for your AltOther_<OID> INSERT
or create your own INSERT. The sample INSERT called AltOther_1_2_3_4_5 demonstrates
using one input field. The sample insert called AltOther_1_2_3_4_6 demonstrates
using two input fields.
- Determine the following values you will use to customize your
INSERT.
- The OID value for your OtherName field
- The name and length for each input field.
- Review Figure 1. It contains a listing
of the sample INSERT called AltOther_1_2_3_4_6 which
demonstrates using two input fields. The lines you are most likely
to customize are marked in Figure 1. The
following steps refer to the marked lines.
ProcedurePerform the following steps to
customize the AltOther_<OID> INSERT using Figure 1 as a reference. Figure 1. Partial listing of the AltOther_1_2_3_4_6 sample
INSERT showing the lines you are most likely to customize =====================================================================
# Sample AltOther INSERT with two input fields
# =====================================================================
<INSERT NAME=AltOther_1_2_3_4_6> 1
<INPUT NAME="AltOther_1_2_3_4_6" TYPE="hidden" maxlength="255">
<p> Other Name for alternate name: <BR>
<p> <LABEL for="other2afield">Customer's driver license number (9 digits) [optfield]</LABEL> <BR> 2
<INPUT NAME="Other2a" TYPE="text" SIZE=9 maxlength="9" [readonly] id="other2afield"> 3
<p> <LABEL for="other2bfield">Customer's driver license expiration date (yyyymmdd) [optfield]</LABEL> <BR> 4
<INPUT NAME="Other2b" TYPE="text" SIZE=8 maxlength="8" [readonly] id="other2bfield"> 5
<INPUT NAME="altrawstring_1_2_3_4_6" TYPE="hidden" VALUE="[altrawvalue]">
<SCRIPT LANGUAGE="JavaScript">
<!--
//This is the script that will be called at load time.
var form=document.forms[0]
if (form.altrawstring_1_2_3_4_6.value.length > 0) {
//The name 'Otherx' needs to match with the above INPUT NAME.
//Substr(start position, length)
form.Other2a.value=form.altrawstring_1_2_3_4_6.value.substr(0,9) 6
form.Other2b.value=form.altrawstring_1_2_3_4_6.value.substr(9,8) 7
}
//-->
</SCRIPT>
<SCRIPT LANGUAGE="JavaScript"> 8
<!--
//This is the validation script
function ValidAltOther_1_2_3_4_6(frm){
if (("[optfield]" == "" && frm.Other2a.value.length != 9) ||
("[optfield]" !="" && frm.Other2a.value != "" && frm.Other2a.value.length != 9)) {
alert("Enter 9 digit license number.");
frm.Other2a.focus();
return false;
}
⋮
//Build the entire AltOther field.
if (frm.Other2a.value != "" && frm.Other2b.value != "")
frm.AltOther_1_2_3_4_6.value = "1.2.3.4.6," + frm.Other2a.value + 9
frm.Other2b.value;
else
frm.AltOther_1_2_3_4_6.value = "";
return true;
}
//-->
</SCRIPT>
</INSERT>
- Change the OID value _1_2_3_4_6 to the
OID value you need in the line marked 1 and
in all other lines in the sample INSERT. For example, if you chose
OID 2.16.76.1.3.1 for your OtherName field, change
all occurrences of AltOther_1_2_3_4_6 to AltOther_2_16_76_1_3_1.
_______________________________________________________
- Customize the first input field description in the line
marked 2 to prompt users of your Web
page. For example, change Customer's driver license number
(9 digits) to Enter your member card number.
_______________________________________________________
- Customize the first INPUT field name "Other2a" to
your value in the line marked 3 and in
all other lines in the sample INSERT. For example, change all occurrences
of "Other2a" to "MemNum".
Also, customize SIZE and maxlength as
needed.
_______________________________________________________
- Customize the next input field description in the line
marked 4 to prompt users of your Web
page. For example, change Customer's driver license expiration
date (yyyymmdd) to Enter your date of birth (yyyymmdd).
_______________________________________________________
- Customize the next INPUT field name "Other2b" to
your value in the line marked 5 and in
all other lines in the sample INSERT. For example, change all occurrences
of "Other2b" to "Birthdate".
Also, customize SIZE and maxlength as
needed.
_______________________________________________________
- Customize the starting positions and lengths for each
input field value in the lines marked 6 and 7 .
For example, if the member card number is an 11-digit number, change form.Other2a.value=form.altrawstring_1_2_3_4_6.value.substr(0,9) to form.MemNum.value=form.altrawstring_2_16_76_1_3_1.value.substr(0,11).
_______________________________________________________
- Customize the validation script that begins with the
line marked 8 .
_______________________________________________________
- Change the OID value 1.2.3.4.6 to the
OID value you need in the line marked 9 .
For example, if you chose OID 2.16.76.1.3.1 for your
OtherName field, change 1.2.3.4.6 to 2.16.76.1.3.1.
_______________________________________________________
- Repeat steps 2 through 8 for each additional input field you need.
_______________________________________________________
|