Какой синтаксис certutil добавить в модификатор, такой как «ExtendedProperties» - PullRequest
0 голосов
/ 27 февраля 2020

Я пытаюсь выяснить, куда поместить модификатор "ExtendedProperties" в certutil -p "abcd" -exportPFX .... Как будет выглядеть синтаксис?

1 Ответ

0 голосов
/ 27 февраля 2020

Вы можете проверить справку по certutil для -exportPFX

C:\WINDOWS\system32>certutil -exportPFX -?
Usage:
  CertUtil [Options] -exportPFX [CertificateStoreName] CertId PFXFile [Modifiers]
  Export certificate and private key
    CertificateStoreName -- Certificate store name.  See -store.
    CertId -- Certificate or CRL match token.  See -store.
    PFXFile -- exported PFX data output file
    Modifiers -- Comma separated list of one or more of the following:
            NoChain -- Do not export the certificate chain
            NoRoot -- Do not export the root certificate
            ExtendedProperties -- Include extended properties
            NoEncryptCert -- Do not encrypt the certificates
            EncryptCert -- Encrypt the certificates
            ExportParameters -- Export Parameters
            CryptoAlgorithm=AlgorithmString -- Cryptographic Algorithm
              AlgorithmString Examples:
                TripleDES-Sha1
                Aes256-Sha256
    Defaults to personal machine store.
    Modifiers:
      NoChain -- End Entity certificate only
      NoRoot -- Exclude root certificate
      CryptoAlgorithm= -- Cryptographic algorithm used to create a PFX file
      ExtendedProperties
      NoEncryptCert
      EncryptCert
      ExportParameters

Options:
  -f                -- Force overwrite
  -Enterprise       -- (-ent) Use local machine Enterprise registry certificate store
  -user             -- Use HKEY_CURRENT_USER keys or certificate store
  -GroupPolicy      -- (-gp) Use Group Policy certificate store
  -Unicode          -- Write redirected output in Unicode
  -gmt              -- Display times as GMT
  -seconds          -- Display times with seconds and milliseconds
  -split            -- Split embedded ASN.1 elements, and save to files
  -v                -- Verbose operation
  -privatekey       -- Display password and private key data
  -pin PIN                  -- Smart Card PIN
  -p Password               -- Password
  -ProtectTo SAMNameAndSIDList -- Comma separated SAM Name/SID List
  -t Timeout                -- URL fetch timeout in milliseconds
  -sid WELL_KNOWN_SID_TYPE  -- Numeric SID
            22 -- Local System
            23 -- Local Service
            24 -- Network Service

CertUtil -?              -- Display a verb list (command list)
CertUtil -exportPFX -?   -- Display help text for the "exportPFX" verb
CertUtil -v -?           -- Display all help text for all verbs
...