< Back

New-RootSubCA

Sun Jan 19, 2020 5:51 pm

NAME New-RootSubCA



SYNOPSIS

Creates a two tier PKI CA.

Version 2.1.0.4





SYNTAX

New-RootSubCA [-RootKeyLength] <Int32> [-SubCA01KeyLength] <Int32> [-SubCA02KeyLength] <Int32> [[-RootDaysVaild]

<Int32>] [[-SubCa01DaysValid] <Int32>] [[-SubCa02DaysValid] <Int32>] [<CommonParameters>]





DESCRIPTION

Creates a root certificate and two subordinate certificates (SubCa)





PARAMETERS

-RootKeyLength <Int32>

Specifies the length of the Root CA key-values are 1, 2, 4, 8, 16



Required? true

Position? 1

Default value 0

Accept pipeline input? false

Accept wildcard characters? false



-SubCA01KeyLength <Int32>

Specifies the length of the the first Sub CA key-values are 1, 2, 4, 8, 16



Required? true

Position? 2

Default value 0

Accept pipeline input? false

Accept wildcard characters? false



-SubCA02KeyLength <Int32>

Specifies the length of the the second Sub CA key-values are 1, 2, 4, 8, 16



Required? true

Position? 3

Default value 0

Accept pipeline input? false

Accept wildcard characters? false



-RootDaysVaild <Int32>



Required? false

Position? 4

Default value 0

Accept pipeline input? false

Accept wildcard characters? false



-SubCa01DaysValid <Int32>

Specifies the number of days the SubCa01 is valid for-values are between 30-1825-Must be equal or less than

Rootdays-This value will be automatically changed if needed. Default is 365 if not specified



Required? false

Position? 5

Default value 0

Accept pipeline input? false

Accept wildcard characters? false



-SubCa02DaysValid <Int32>

Specifies the number of days the SubCa02 is valid for-values are between 30-1825-Must be equal or less than

Rootdays-This value will be automatically changed if needed. Default is 365 if not specified



Required? false

Position? 6

Default value 0

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS

None.





OUTPUTS



NOTES





Requirements: Windows 10 17.09 or better or Server 2016 or better

Requirements: Windows PowerShell 5.1



Max Encrypt size RSA ((KeySize - 384) / 8) + 37



-------------------------- EXAMPLE 1 --------------------------



PS>New-RootSubCa -RootKeyLength 4 -SubCA01KeyLength 4 -SubCA02KeyLength 4 -RootDaysValid 400 -SubCa01DaysValid 365

-SubCa02DaysValid 300















RELATED LINKS