We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
.... { "NodeName": "MACHINE NAME", "Role": [ "Server", "SQLServerClient", "DataStore" ], "DataStoreTypes": [ "Relational", "TileCache" ], "SslCertificates": [{ "Path": "C:\\Software\\Certificates\\CERT.pfx", "PasswordFilePath": "C:\\Software\\Passwords\\PWFILE.txt", "CNameFQDN": "MACHINE NAME", "SslRootOrIntermediate": [{ "Alias": "ROOT", "Path": "C:\\Software\\Certificates\\ROOT.cer" }, { "Alias": "INTER", "Path": "C:\\Software\\Certificates\\INTER.cer" }, { "Alias": "ROOT2", "Path": "C:\\Software\\Certificates\\ROOT2.cer" }, { "Alias": "INTER2", "Path": "C:\\Software\\Certificates\\INTER2.cer" } ], "Target": [ "Server", "DataStore" ] }] }, ....
Script should cancel out when there it cannot find a pw file
it continues to try to upload the cert with no password file
run powershell dsc script against arcgis server and reference a pw file for a cert that doesn't exist but provide a cert that does exist
The text was updated successfully, but these errors were encountered:
Hi @BrendanEsri,
This issue has been addressed in v4.2.1.
https://github.com/Esri/arcgis-powershell-dsc/releases/tag/v4.2.1
The module will now fail with an error message when the encrypted password file does not exist. For example the service account password file:
Invoke-ArcGISConfiguration .\my.json -DebugSwitch -EnableMSILogging -Mode Install Password file C:\serviceaccount.txt does not exist. At C:\Program Files\WindowsPowerShell\Modules\ArcGIS\ArcGIS.psm1:419 char:13 + throw "Password file $($Object.PasswordFilePath) does not ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : OperationStopped: (Password file C...does not exist.:String) [], RuntimeException + FullyQualifiedErrorId : Password file C:\serviceaccount.txt does not exist.
Another example of when a ssl certificate password file does not exist:
ArcGISLicense - Completed Password file C:\sslcertificatepass.txt does not exist. At C:\Program Files\WindowsPowerShell\Modules\ArcGIS\ArcGIS.psm1:419 char:13 + throw "Password file $($Object.PasswordFilePath) does not ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : OperationStopped: (Password file C...does not exist.:String) [], RuntimeException + FullyQualifiedErrorId : Password file C:\sslcertificatepass.txt does not exist.
This applies to all password files.
Thanks, Cameron K.
Sorry, something went wrong.
cameronkroeker
No branches or pull requests
Community Note
Module Version
Affected Resource(s)
Configuration Files
Expected Behavior
Script should cancel out when there it cannot find a pw file
Actual Behavior
it continues to try to upload the cert with no password file
Steps to Reproduce
Important Factoids
run powershell dsc script against arcgis server and reference a pw file for a cert that doesn't exist but provide a cert that does exist
References
The text was updated successfully, but these errors were encountered: