2016-01-19 05:36 AM
I need to install a certificate on a clustered Data ONTAP controller with help of WFA.
When I insert a certificate (pem format) in a user input field of type string and pass this input via a variable into a WFA command then "Install-NcSecurityCertificate" is throwing error "Failed to read Certificate". When I use "Install-NcSecurityCertificate" in power shell CLI then the same certificate (pem format) works fine.
I asume that WFA is changing the content of the string input field (especially the newline characters). But I am not sure.
Can anybody help me with this?
Thanks in advance.
Solved! SEE THE SOLUTION
2016-01-19 08:14 AM
user input field is usually used to provide single line of text, and it will remove end of line characters. As a workaround, you can specify the certificate file name in user input, and read the file content inside the powershell command, and then pass it to Install-NcSecurityCertificate Cmdle
2017-12-15 09:33 AM
I am actually having this cannot read certificate error from the PowerShell CLI. Any suggestions? I am reading the contents of the file in to a variable. I have tried several different ways and still no luck.
2017-12-20 04:09 AM
I am actually having this cannot read certificate error from the PowerShell CLI. Any suggestions?
Yes, the only suggestion I can give right now is to provide your code. Otherwise its like asking help to solve "who killed Martha" when you haven't even told what is the story.
You said said you have tried different ways. So provide some of those ways and we can see what mistakes were being made.