????? ????? ??? ????? S/MIME ??? ??? ????? MAPI ????????? ?? Outlook

?????? ????????? ?????? ?????????
???? ???????: 312900 - ??? ???????? ???? ????? ????? ??? ???????.
????? ???? | ?? ????

??????

???? ??? ??????? ????? ????? ????? ????? ??????? ??? ??? ????? MAPI ????????? ?? Microsoft Outlook ?? ????? ?????? ? ????? ?????? ??????????. ????? ??? ??????? ????? ??? MAPI ?? ??? ?????? ??? ????? ????? ????? "?????? ?????? ?????? ????? ??????? ????????" (S/MIME).

??????? ????

?????? ????? ??? ??? ????? MAPI ???? ??????? ???????:
  1. ?????? ??? ???????? ?? ?? ?? ????? ??????? ? ????? ???????. ??? ??????? ?? ????? ????? ?? ???? ??????? ???????? ?????? CertGetCertificateContextProperty ????? ????? ????????? "???????" (API):
    CertGetCertificateContextProperty(pCert, CERT_HASH_PROP_ID, *lpbHash, cbHash);
    					
  2. ????? S/MIME ????? ASN1 ????? ????? ???? ???? (BLOB) ???????? ????? ??. ????? ?? ?????????? ???? ????? ?? ??? ????????? (RFC) S/MIME.
  3. ????? BLOB ??????? ??????. ??? ????? ?? ??????? ????? ?? ?????? ??? TAG ?????? ??? ???:

    ?? ??? ??????????? ??? ??????
    ?????????????? ??? ??????? ???? (???? ??????? ?????).2 ????
    ?????????? ??? ?????? ??? ??????? ??? ?? ??? ???? ??????? ?????.2 ????
    ????????????? ??? ????????.????? ?????

    ????? ??? ????:
    0100 0800 01000000
    Translated:
    TAG = 1
    LENGTH = 8 bytes
    DATA = 1
    						
    ???? ??????? ???? ??? ??????? ?? ????? ?? BLOB ???:

    ?? ??? ??????????? ??? ??????
    ??????????? ???????????
    pr_cert_prop_version0x00018??? ? ?????? 1.
    pr_cert_message_encoding0x00068??? ??????? (S/MIME = 1).
    pr_cert_defaults0x00208???? ????:
    0x1 = ??????? ????? S/MIME.
    0x2 = ??????? ?????????? ????? ?????????.
    0x4 = ????? ??????? ?? ???????.
    pr_cert_display_name_a0x000B???????? ??? ??????? ?? ????? ?????? Outlook (??? ???? ??????? "S/MIME ????????? ?????? ??").
    pr_cert_keyex_sha1_hash0x0022?????????? ???????? ?? ??? ????? ???????. ???? ?? ??? ??? ??? ??????? ??? ??? ???? ?? ?????? ????? ???.
    pr_cert_sign_sha1_hash0x0009?????????? ??????? ????? ???????.
    pr_cert_asymetric_caps0x0002?????????? ASN1 S/MIME ????? BLOB.

    ???? ?? ??????? ???? ??????? ?? ??? ????? ???? ????.
  4. ?????? ????? IProfAdmin ???? ??? ????? MAPI.
  5. ??? ???? ??????? ??????? GUID_Dilkie ??? ??? ????? ??????? ??????. ????? GUID_Dilkie ??? ???:
    const GUID CDECL GUID_Dilkie = {  0x53bc2ec0, 0xd953, 0x11cd, {0x97, 0x52, 0x00, 0xaa, 0x00, 0x4a, 0xe4, 0x0e}  };
    					
  6. ???? ?? ?????? 5 ????? IProfSect. ??? ??? ??????? ????? ??????? ???????:
    #define PR_SECURITY_PROFILES PROP_TAG(PT_MV_BINARY, 0x355)
    						
    ??? ??????? ????? ?????? ????? ??????. ??? ????? ?????? ???????? ?????? ??? ??????? ?? BLOB ???? ??? ??????? ?? ?????? 3.
    LPPROFSECT          lpProfSect = NULL;
    SPropValue          SecProp;
    LPSPropValue        lpSecProp = &SecProp;
    SBinary             sbCert;
    LPBYTE              lpbCertBlob = NULL;
    ULONG               cbCertBlob = 0;
    
    // Do the work to generate lpbCertBlob (step 3) and open GUID_Dilkie profile section.
    
    // Set up property tag structure for PR_SECURITY_PROFILES.
    SecProp.ulPropTag = PR_SECURITY_PROFILES;
    SecProp.Value.MVbin.cValues = 1;
    SecProp.Value.MVbin.lpbin = &sbCert;
    SecProp.Value.MVbin.lpbin[0].cb = cbCertBlob;
    SecProp.Value.MVbin.lpbin[0].lpb = lpbCertBlob;
    
    // Set properties on the profile section.
    if (FAILED(hRes = lpProfSect->SetProps(1, lpSecProp, NULL)))
    {
        printf("Error setting property on profile.\n");
        goto error;
    }
    					

???????

???? ???????: 312900 - ????? ??? ??????: 20/???/1426 - ??????: 2.5
????? ???
  • Microsoft Outlook 2000
  • Microsoft Outlook 2002 Standard Edition
  • ????? ????? ??????? ??????? ?? Microsoft
????? ??????: 
kbmt kbhowto kbmsg KB312900 KbMtar
????? ????
???: ??? ????? ??? ?????? ???????? ?????? ????? ???? ????? ?????????? ????? ?? ????????? ?????? ????. ???? ???? ?????????? ???? ?? ???????? ???????? ?????? ????????? ????? ????????? ???????? ????? ???????? ?????? ?? ?????? ??? ?? ???????? ???????? ?? ????? ??????? ?????? ??? ??????? ?????? ??. ?????? ?? ???? ??? ??????? ???????? ????? ?? ???? ????? ?????? ??? ????? ??? ????? ??????? ?? ????? ?? ?????? ??? ??? ??????? ??????? ?? ????? ????? ????? ????? ?????. ?? ????? ???? ?????????? ??????? ??? ????? ?? ??????? ?? ????? ?????? ?? ??? ????? ?? ????? ??????? ?? ???????? ?? ??? ???????. ???? ???? ?????????? ???????? ??? ????? ?????? ??????? ??????
???? ??? ????? ??????? ?????? ??????????312900

????? ???????

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com