Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set-ACMEVault do not recognize the Force command #338

Open
BastianFie opened this issue Mar 3, 2018 · 2 comments
Open

Set-ACMEVault do not recognize the Force command #338

BastianFie opened this issue Mar 3, 2018 · 2 comments

Comments

@BastianFie
Copy link

BastianFie commented Mar 3, 2018

The documentation here said that Set-ACMEVault would accept the force command. However when I try the following:

Set-ACMEVault -BaseService LetsEncrypt-STAGING -Alias Staging -VaultProfile $VaultProfile -Force

I get the error message:

Set-ACMEVault : Missing an argument for parameter 'Force'. Specify a parameter of type 'System.Boolean' and try again.
At line:1 char:80

  • ... LetsEncrypt-STAGING -Alias Staging -VaultProfile $VaultProfile -Force
  •                                                                ~~~~~~
    
    • CategoryInfo : InvalidArgument: (:) [Set-ACMEVault], ParameterBindingException
    • FullyQualifiedErrorId : MissingArgument,ACMESharp.POSH.SetVault

also other tests with true or 1 caused similar issues:

Set-ACMEVault -BaseService LetsEncrypt-STAGING -Alias Staging -VaultProfile $VaultProfile -Force true

Set-ACMEVault : Cannot convert 'System.String' to the type 'System.Boolean' required by parameter 'Force'.
At line:1 char:87

  • ... ncrypt-STAGING -Alias Staging -VaultProfile $VaultProfile -Force true
  •                                                                  ~~~~
    
    • CategoryInfo : InvalidArgument: (:) [Set-ACMEVault], ParameterBindingException
    • FullyQualifiedErrorId : CannotConvertArgument,ACMESharp.POSH.SetVault

Set-ACMEVault -BaseService LetsEncrypt-STAGING -Alias Staging -VaultProfile $VaultProfile -Force 1

Set-ACMEVault : A parameter cannot be found that matches parameter name 'BLetsEncrypt-STAGING'.
At line:1 char:15

  • Set-ACMEVault -BLetsEncrypt-STAGING -Alias Staging -VaultProfile $Vau ...
  •           ~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidArgument: (:) [Set-ACMEVault], ParameterBindingException
    • FullyQualifiedErrorId : NamedParameterNotFound,ACMESharp.POSH.SetVault
@j81blog
Copy link

j81blog commented Mar 30, 2018

Maybe try -Force $true . The documentation writes "-Force < Boolean >" so a Boolean must me specified, $true or $false. Just "True" is as string, text.
If it was written as a "Switch" instead of a "Boolean", the parameter could be used just by specifying the parameter -Force.

@BastianFie
Copy link
Author

Hi, thanks for the tip with $true. I will give that a try as well. But the "-Force" as mentioned by you is however not working as written above

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants