Marco Blessing
fdc6651588
## About ## Content (Micro Commits) * fixes #38 * fixes #44 * Implement precise lookup hierarchy (fixes #43) * align pester test with #43 logic * split cert functions * use new cert functions for save an lookup * fix pester tests * [wip] * fix var name ref * fix exports * fix cert store location for windows shared mode * fix mandatory params * fix accidentially removed code block * add basic cert pester pests * remove old docs * update cbh blocks * update cbh blocks * update docs * move .net wrapper forpfx files * do not export .net wrapper functions * update docs * rename tests * fix private functions location * - fixes #44: FTP connection * add link to reference * add format files * add preview version shield * update markdown help files (platyps) * add emoji images in captions * fix typos * fix typos * fix typo * prepare version numbers
16 lines
598 B
PowerShell
16 lines
598 B
PowerShell
Describe "New-CSCertificate" {
|
|
Context "Basic Tests" {
|
|
It "Test1: Should not throw" {
|
|
|
|
$attribs = New-CSCertAttribute -Country 'DE' -State 'BW' -City 'KA' -Organization 'IT' -OrganizationalUnitName'' -CommonName 'Mycert'
|
|
|
|
$CertAttribs = @{
|
|
CRTAttribute = $attribs
|
|
KeyName = Join-Path -Path (Get-TempDir) -ChildPath '/foo.key'
|
|
CertName = Join-Path -Path (Get-TempDir) -ChildPath '/cert.pfx'
|
|
}
|
|
{ New-CSCertificate @CertAttribs } | Should -Not -Throw
|
|
}
|
|
}
|
|
}
|