The subject is always required and should begin with "CN=". You can control the subject (via the -Subject parameter), key length (via the -Length parameter), the hash algorithm (via the -Algorithm parameter), and the expiration date of the keys (via the -ValidTo parameter). %szOID_ENHANCED_KEY_USAGE% = "%szOID_DOCUMENT_ENCRYPTION%" KeyUsage = "CERT_KEY_ENCIPHERMENT_KEY_USAGE | CERT_DATA_ENCIPHERMENT_KEY_USAGE" inf file as input (taken from the first example in the help for the Protect-CmsMessage cmdlet): The New-RsaKeyPair function uses the certreq.exe program to generate an RSA public/private key pair suitable for use in encrypting/decrypting CMS messages, credentials in DSC resources, etc.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |