im debugging the RDSGatewayServices.ps1 script and got errors
PS C:\Windows\system32> Set-Item -Path RDS:\GatewayServer\SSLCertificate\Thumbprint -Value $result.ManagedItem.CertificateThumbprintHash -ErrorAction Stop
Set-Item : Der Parameter “Value” darf nicht NULL sein.
In Zeile:1 Zeichen:1
Hi, as you know we do provide a basic script for RDS Gateway:
The key thing with testing it outside of the app is that it expects a $result parameter which is a special result object passed by Certify which contains things like the status of the certificates request, the new certificate thumbprint value and the path to the PFX file (if required).
The main job of Certify is to request and renew certificates, how you then choose to apply the certificate will depend a lot on your configuration and requirements. We don’t currently operate multi server RDP systems for the purposes of testing these scripts and there are thousands of different possible service you could deploy your certificate to, RDP being one category.
So we do rely on users to provide their own experience and expertise with regards to the services they are trying to deploy to. Our example script is just a basic example talking to a local service and you may find there is a much better way to do it for the type of deployment you require.
You should have a look through this forum and any others elsewhere to see if there is a script others are using and if you find a something it would be great if you could post here for others to benefit from. There may be relevant scripts you can re-use from other tools like win-acme, Posh-ACME etc.
The best place to look is of course the microsoft documentation site and if necessary contact microsoft support to find out exactly how certificate deployment can be scripted.
p.s. make sure you are running the latest version (5.4.2) of Certify, 5.4.0-5.4.1 had a bug where certain newly added managed certificates weren’t deployed to the local certificate store properly, which could affect other scripting.