Help
  • Explore Community
  • Get Started
  • Ask the Community
  • How-To & Best Practices
  • Contact Support
Notifications
Login / Register
Community
Community
Notifications
close
  • Forums
  • Knowledge Center
  • Events & Webinars
  • Ideas
  • Blogs
Help
Help
  • Explore Community
  • Get Started
  • Ask the Community
  • How-To & Best Practices
  • Contact Support
Login / Register
Sustainability
Sustainability

Join our "Ask Me About" community webinar on May 20th at 9 AM CET and 5 PM CET to explore cybersecurity and monitoring for Data Center and edge IT. Learn about market trends, cutting-edge technologies, and best practices from industry experts.
Register and secure your Critical IT infrastructure

Unable to import SSL certificate

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.

cancel
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Home
  • Schneider Electric Community
  • APC UPS, Critical Power, Cooling and Racks
  • APC UPS Data Center & Enterprise Solutions Forum
  • Unable to import SSL certificate
Options
  • Subscribe to RSS Feed
  • Mark Topic as New
  • Mark Topic as Read
  • Float this Topic for Current User
  • Bookmark
  • Subscribe
  • Mute
  • Printer Friendly Page
Invite a Co-worker
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 Invite Cancel
Invitation Sent
Your invitation was sent.Thanks for sharing Exchange with your co-worker.
Send New Invite Close
Top Experts
User Count
BillP
Administrator BillP Administrator
5060
voidstar_apc
Janeway voidstar_apc
196
Erasmus_apc
Sisko Erasmus_apc
112
TheNotoriousKMP_apc
Sisko TheNotoriousKMP_apc
108
View All

Invite a Colleague

Found this content useful? Share it with a Colleague!

Invite a Colleague Invite
Solved Go to Solution
Back to APC UPS Data Center & Enterprise Solutions Forum
Solved
pgpc_apc
Crewman pgpc_apc
Crewman

Posted: ‎2021-06-30 06:12 AM . Last Modified: ‎2024-03-08 01:24 AM

0 Likes
4
2496
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2021-06-30 06:12 AM . Last Modified: ‎2024-03-08 01:24 AM

Unable to import SSL certificate

I have been struggling to import an external CA SSL certificate into NMCv2 since 2018 prior to the NMCSecurityWizardCLI.  Our CA was then running under Windows Server.  It now is running OpenSSL.

I am encountering the same errors as reported by many others in trying to import the OpenSSL CA-signed certificate.  I am using NMCSecurityWizardCLI v1.0.0 to create the CSR, our internal OpenSSL CA to sign it with a SHA256 hash and NMCSecurityWizardCLI v1.0.0 to import the signed certificate, all meticulously in accordance with the instructions in the readme file and the instructions in APC's Network Enabled Devices Security Handbook.  If I try to import the entire .crt file generated by OpenSLL, signed certificate, NMC has an unrecoverable error:

Unhandled Exception: cryptlib.CryptException: -32: Bad/unrecognised data format
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)

If I extract the Base64 certificate from the .crt file and try to import just that, NMC has a different unrecoverable error:

Unhandled Exception: cryptlib.CryptException: -3: Bad argument, parameter 3
at NMCSecurityWizardCLI.Program.ImportSignedCSR(String sCertFile, String sKeyFile, String sOutFile)
at NMCSecurityWizardCLI.Program.Main(String[] args)

In a post in this string ,https://community.se.com/t5/APC-UPS-Data-Center-Enterprise/bd-p/datacenter-forum, Gavan gave a link to a guide with steps to follow to solve the -32 bad format problem, but the link does not work now.

That some have reported success in importing OpenSSL CA-signed certificates suggests APC's instructions are missing critical information necessary to use it successfully.  I would appreciate APC either identifying the problem from the error messages above or a providing a complete set of instructions.  If someone who has successfully imported an OpenSLL CA-signed certificate would post a copy of the applicable portions of their openssl.cnf file, I would be grateful.

Labels
  • Labels:
  • UPS Management Devices & PowerChute Software
Reply

Link copied. Please paste this link to share this article on your social media post.

  • All forum topics
  • Previous Topic
  • Next Topic

Accepted Solutions
Anonymous user
Not applicable

Posted: ‎2021-06-30 06:13 AM . Last Modified: ‎2024-03-08 01:23 AM

0 Likes
0
2492
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2021-06-30 06:13 AM . Last Modified: ‎2024-03-08 01:23 AM

the overall bottom line is, that for the cost of these devices it is appalling how few development they spend on modernizing their software. this is how companies or branches go extinct.

 

 

See Answer In Context

Reply

Link copied. Please paste this link to share this article on your social media post.

Replies 4
Anonymous user
Not applicable

Posted: ‎2021-06-30 06:12 AM . Last Modified: ‎2024-03-08 01:24 AM

0 Likes
0
2492
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2021-06-30 06:12 AM . Last Modified: ‎2024-03-08 01:24 AM

I successfully imported my OpenSSL CA certificate using the web UI. you just need to rename the file extension from pem to crt, then it should work.

However! Sending mail vie SSL implicitly or with StartTLS does not anyway! This works if I use a Lets Encrypt Certificate on the server, but my own self-signed CA certificate is not accepted, although I uploaded it and enabled it for Email use...

 

Reply

Link copied. Please paste this link to share this article on your social media post.

Anonymous user
Not applicable

Posted: ‎2021-06-30 06:13 AM . Last Modified: ‎2024-03-08 01:24 AM

0 Likes
0
2492
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2021-06-30 06:13 AM . Last Modified: ‎2024-03-08 01:24 AM

To be more explicit, this method onyl works for the SMTP SSL/TLS root CA certificate!

For HTTPS the UI expects a p15 file and the only software able to generate that is the APC Security Wizard for Windows. To be honest, this is really appalling. APC shoudl be able and willing to provide the posibility to upload openssl file formats without the need for a proprietary tool to convert the files before upload. We are in 2021, how hard can it be? This is a problem since so many years now!

 

 

Reply

Link copied. Please paste this link to share this article on your social media post.

pgpc_apc
Crewman pgpc_apc
Crewman

Posted: ‎2021-06-30 06:13 AM . Last Modified: ‎2024-03-08 01:24 AM

0 Likes
0
2492
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2021-06-30 06:13 AM . Last Modified: ‎2024-03-08 01:24 AM

It turns out that APC cleverly labeled the buggy v1.0.1 of NMCSecurityWizard as v1.0.0 to cause even more frustration and confusion.  After stumbling on to the deception, I obtained the true v1.0.0 from Tech Support and, as others have reported, it works. 

Be aware the zip file on APC's web site labeled "NMCSecurityWizardCLI_v1.0.0" does not actually contain NMCSecurityWizardCLI.exe v.1.0.0 despite the included executable's properties showing it to be "Product Version 1.0.0.0" and "File Version 1.0.0.0".  When the executable is run, it reveals it is actually "NMC Security Wizard Command Line Utility v1.0.1," which is further confirmed by the fact that it will not import a signed certificate. 

The zip file that does contain NMCSecurityWizardCLI.exe v1.0.0 is labeled "NMCSecurityWizardCLIUtility_v100" and it is available from Tech Support.  The properties of the executable in this zip file show are identical to those of the imposter, i.e., "Product Version 1.0.0.0" and "File Version 1.0.0.0," but when running it reports it is truly is "NMC Security Wizard Command Line Utility v1.0.0.

The SHA-1 hash of the true v1.0.0 is: 017056A6296DB11FEE69F970FC34EBD81F31891B.  The SHA-1 hash of the imposter is: 0F0A54979CB9F15208D3175CF0E9B1F5FDB65ADB.

Two tips for those using OpenSSL that I had to learn by trial-and-error:

1.  Although not stated anywhere in APC's documentation, the certificate to be uploaded must be just the Base64 portion of the .crt file that OpenSSL generates.  

2. The NMCSecurityWizardCLI utility generates CSRs with the data you enter (i.e., countryName, organizationName, etc) encoded as PRINTABLESTRINGs.  If your CA is set up with a utf8only string_mask and your openssl.cnf includes a policy requiring a match between any of the entered CSR data and the CA's details, such as requiring a match for the organizationName, as mine is, OpenSSL will refuse to sign the certificate and complain of a mismatch between the CA's organizationName and the CSR organizationName:  "The organizationName field is different between CA certificate (Example, Inc.) and the request (Example, Inc.)."  This is because OpenSSL compares the encoded data instead of the underlying data so that it treats UTFSTRING-encoded Example, Inc. as different from PRINTABLESTRING-encoded Example, Inc.  The work around is to revise your openssl.cnf to change the policy from "match" to "supplied" for any of the data you supply in the NMCSecurityWizardCLI-generated CSR.

 

Reply

Link copied. Please paste this link to share this article on your social media post.

Anonymous user
Not applicable

Posted: ‎2021-06-30 06:13 AM . Last Modified: ‎2024-03-08 01:23 AM

0 Likes
0
2493
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2021-06-30 06:13 AM . Last Modified: ‎2024-03-08 01:23 AM

the overall bottom line is, that for the cost of these devices it is appalling how few development they spend on modernizing their software. this is how companies or branches go extinct.

 

 

Reply

Link copied. Please paste this link to share this article on your social media post.

Preview Exit Preview

never-displayed

You must be signed in to add attachments

never-displayed

 
To The Top!

Forums

  • APC UPS Data Center Backup Solutions
  • EcoStruxure IT
  • EcoStruxure Geo SCADA Expert
  • Metering & Power Quality
  • Schneider Electric Wiser

Knowledge Center

Events & webinars

Ideas

Blogs

Get Started

  • Ask the Community
  • Community Guidelines
  • Community User Guide
  • How-To & Best Practice
  • Experts Leaderboard
  • Contact Support
Brand-Logo
Subscribing is a smart move!
You can subscribe to this board after you log in or create your free account.
Forum-Icon

Create your free account or log in to subscribe to the board - and gain access to more than 10,000+ support articles along with insights from experts and peers.

Register today for FREE

Register Now

Already have an account? Login

Terms & Conditions Privacy Notice Change your Cookie Settings © 2025 Schneider Electric

This is a heading

With achievable small steps, users progress and continually feel satisfaction in task accomplishment.

Usetiful Onboarding Checklist remembers the progress of every user, allowing them to take bite-sized journeys and continue where they left.

of