Vadims Podans
Vadims Podans
I did a review of PsFCIV and decided to split it up from PSPKI and move to a separate project: https://github.com/PKISolutions/PsFCIV. I refactored the code, removed legacy artifacts, various bugs,...
Sorry, there are no current plans to implement this. Provided workaround seems to be sufficient. This is not very critical issue.
> I was merely making a feature request/suggestion to make your tool more user friendly to the people you supposedly built them for. I appreciate your interest and efforts in...
> I am simply making a suggestion to enhance your tool. and we appreciate this! However, every suggestion goes through triage process. We evaluate many aspects of each suggestion, like...
As a temporary fix, you can comment this block in `PSPKI.psm1` file: https://github.com/PKISolutions/PSPKI/blob/4522ee48755450f3129352f029bfdb9c484f2dd9/PSPKI/PSPKI.psm1#L289
Yes, this is expected. The [documentation](https://www.pkisolutions.com/tools/pspki/Get-CertificationAuthority/) says that it retrieves only CAs registered in Active Directory, thus depends on AD. For workgroup environments you have to use `Connect-CertificationAuthority` command instead....
> I see, thank you for the quick response. But it seems the command does return useful results, just with an additional error - I can use the resulting CA...
Actually, this variable is defined here: https://github.com/PKISolutions/PSPKI/blob/333caa33639fad444529ad131982459b4142b48f/PSPKI/PSPKI.psm1#L11 and it should be properly initialized with `$true` because ADSI calls to RootDSE must fail in workgroup environment.
> As for variable initialization, when I run `$Domain = ([ADSI]"LDAP://RootDSE").ConfigurationNamingContext` on a non-domain machine, I do not receive an exception, therefore the `catch` section does not get invoked, which,...
> Perhaps we could query `(Get-CimInstance -ClassName 'Win32_ComputerSystem').PartOfDomain` for better detection? I solved this in slightly different way: https://github.com/PKISolutions/PSPKI/blob/a0eb35d49e1a6d08faedeb14e89d6e12615e9088/PSPKI/PSPKI.psm1#L14 I need to ensure that there is at least one online...