NMC Security Wizard CLI error -20 "This type of opn.not available" for CA signed certificate import
APC UPS Data Center & Enterprise Solutions Forum
Schneider, APC support forum to share knowledge about installation and configuration for Data Center and Business Power UPSs, Accessories, Software, Services.
Send a co-worker an invite to the portal.Just enter their email address and we'll connect them to register. After joining, they will belong to the same company.
You have entered an invalid email address. Please re-enter the email address.
This co-worker has already been invited to the Exchange portal. Please invite another co-worker.
Please enter email address
Send InviteCancel
Invitation Sent
Your invitation was sent.Thanks for sharing Exchange with your co-worker.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2024-11-2606:22 AM. Last Modified: 2024-11-2606:23 AM
NMC Security Wizard CLI error -20 "This type of opn.not available" for CA signed certificate import
I am trying to configure my APC UPS SRT8KRMXLI built-in NMC2 and SmartSlot NMC3 web interfaces to use a CA-signed SSL certificate for web access. For this I am using the recommended NMC Security Wizard CLI tool v1.0.1. My Certification Authority is Microsoft Windows Server 2022 CA.
The first command runs fine and creates a certificate signing request file (xxx.mydomain.com.csr) that I upload to my CA for signing. Then with the xxx.mydomain.com.cer certificate signed from my CA I run the second command with the --import argument which returns the following error:
Unhandled Exception: cryptlib.CryptException: -20: This type of opn.not available at cryptlib.crypt.ImportCert(Byte[] certObject, Int32 certObjectOffset, Int32 certObjectLength, Int32 cryptUser) at cryptlib.crypt.ImportCert(Byte[] certObject, Int32 cryptUser) at NMCSecurityWizardCLI.Program.ImportSignedCSR(String sCertFile, String sKeyFile, String sOutFile)at NMCSecurityWizardCLI.Program.Main(String[] args)
I have tried v1.0.0 and v1.0.1 of the CLI tool, both returns the error above.