GithubHelp home page GithubHelp logo

joshooaj / posh-xprotectmobile Goto Github PK

View Code? Open in Web Editor NEW
7.0 7.0 0.0 53 KB

PowerShell module with commands for working with Milestone XProtect Mobile Server certificate binding

Home Page: https://www.powershellgallery.com/packages/Posh-XProtectMobile

License: MIT License

PowerShell 100.00%

posh-xprotectmobile's People

Contributors

joshooaj avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

posh-xprotectmobile's Issues

Renewal for Management server certificate and streaming media certificate

Hi Josh,

I am using the Lets Encrypt certificates also for the other servers and for the streaming media certificate. The renewal script block in the SetupLetsEncrypt.ps1 renews the certificate only for the mobile server. Would it be possible to modify this line in the script so it will update all certificates in the VMS:

$newCert | Set-XProtectCertificate -VmsComponent MobileServer -Force -UserName $ServiceAccountName -RemoveOldCert -ServerConfiguratorPath $ServerConfiguratorPath -ErrorAction Stop

Another feature request that would be really great to have: I used the BackConnectionHostnames registry script to use the certificate for the other servers. Can you include (if possible) the steps you described in this link to the LetsEncrypt fully automated script:
https://supportcommunity.milestonesys.com/s/question/0D53X0000A7RkgPSQS/securing-existing-xprotect-2022r1-installation?language=en_US

So this will renew the certificate for all the servers and the streaming media.
Thanks!

Use Posh-XProtectMobile without DynDNS

Is your feature request related to a problem? Please describe.
Hi! I already have DDNS set up and working and have no need for DynDNS.

Describe the solution you'd like
Would it be possible to add a configuration option for running the certificate automation without needing to using DynDNS or needing to specify DynDNS credentials? As far as I see, the credentials are passed to New-PACertificate with the DnsPlugin flag. If -DnsPlugin isn't specified Posh-ACME will assume Manual-mode instead

Describe alternatives you've considered
For my use case I probably could edit the module code before installing the modules but I believe that this feature would benefit this project. I also could try to make a pull request but I'm very new to scripting in PowerShell.

"Cannot bind parameter" error

Windows 10 Pro (21H2)

Start-LECertSetupUsingDynu
Domain name: ***
E-mail address for renewal notifications: ***
Dynu Client ID: ***
Dynu Secret: ***
Setting Execution Policy to RemoteSigned
Testing certificate request against staging server
New-PACertificate : Cannot bind parameter because parameter 'ErrorAction' is specified more than once. To provide
multiple values to parameters that can accept multiple values, use the array syntax. For example, "-parameter
value1,value2,value3".
At C:\Program Files\WindowsPowerShell\Modules\Posh-XProtectMobile\0.6\Public\Install-CertificateAutomation.ps1:39
char:17
+ ... New-PACertificate -force $domain -AcceptTOS -Contact $con ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (:) [New-PACertificate], ParameterBindingException
+ FullyQualifiedErrorId : ParameterAlreadyBound,New-PACertificate

Workaround:
Remove the "-ErrorAction Stop" from the two calls to New-PACertificate in C:\Program Files\WindowsPowerShell\Modules\Posh-XProtectMobile\0.6\Public\Install-CertificateAutomation.ps1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.