Dell NativeEdge: Blueprints deployment error "libcrypto error"

Summary: This article is related to a problem that could appear during the NativeEdge blueprint deployment and contains the most probable ways to treat it.

This article applies to This article does not apply to This article is not tied to any specific product. Not all product versions are identified in this article.

Instructions

Overview

When using NativeEdge Blueprints, you might encounter errors related to the SSH key during execution, particularly a "libcrypto" error. This error typically occurs due to formatting issues with the private SSH key, such as extra spaces, carriage returns, or newline characters. This article aims to help you figure out and resolve this issue by checking your SSH key in the NativeEdge Secrets UI.

Symptoms

When the blueprint execution fails due to an incorrect private SSH key, you may see an error message similar to the following:
Failed to connect to the host via ssh: Load key "/opt/manager/resources/deployments/default_tenant/someid/tmp2id/f2fffff-ffff-ffef-ffff-ffffffffff": error in libcrypto

This error indicates that the SSH key used by the blueprint is not in the correct format. The most common cause is the presence of extra characters, such as extra spaces, newline characters, or carriage returns, which can occur when the key is copied and pasted into the Secrets UI.

Cause

The error may appear because of improperly formatted SSH keys. This can happen due to:
1. Extra Spaces: Unintended spaces before or after the key
2. Carriage Returns: Extra carriage return symbols, which are invisible in some text editors, but can disrupt the key's structure
3. Newline Characters: Extra or missing newline characters that alter the intended format of the key

These formatting issues prevent the key from parsing correctly, leading to the "libcrypto" error during blueprint execution.


Solution

To resolve the issue, follow these steps:

1. Verify the SSH Key in NativeEdge Secrets

  • Log in to the NativeEdge Manager UI.
  • Navigate to the Secrets section.
  • Find the secret that stores the SSH key.
  • Carefully inspect the SSH key for any of the following:
   - Extra spaces: Check both before and after the key text.
   - Carriage returns: These may not be visible, but you can detect them by checking the key's format in a plain text editor.
   - Newline characters: Ensure that the key begins and ends correctly, without unintended line breaks.

2. Correct the SSH Key Format

If you find any issues, edit the key directly in the Secrets UI:
  • Remove any extra spaces, carriage returns, or newline characters.
  • Ensure that the key is formatted exactly as it was when generated.
  • Save the changes.

3. Validate the Key

To ensure that the key is valid:
  • Use an SSH client to test the key. For example, you can try logging in to a remote server using the key:
    ssh -i /path/to/your/key user@hostname
  • If the key works without issues, it should be correctly formatted.
  • Re-run the Blueprint
Note: We are using OpenSSH format and to use same key for validation using PuTTY utility user should convert the key to the PuTTY compatible key.

After correcting the key in the Secrets UI, re-run the blueprint that was previously failing. The "libcrypto" error should no longer appear.

Preventative Measures

- Double-Check Before Saving: Always double-check your SSH key for extra characters before saving it in the Secrets UI. For example, click into the edit box with a key and navigate to the end of the key. There should not be any extra-line in the end of the key.
- Use a Plain Text Editor: When copying SSH keys, use a plain text editor to avoid any hidden formatting that might be introduced by other text editors.
- Automate Formatting Checks: Consider using automated scripts to validate SSH key formatting before uploading them to NativeEdge.
- Look at the example below to verify the format of your private key looks similar:
-----BEGIN OPENSSH PRIVATE KEY-----
b3BlbnNzaC1rZXktdjEAAAAABG5vbmUAAAAEbm9uZQAAAAAAAAABAAACFwAAAAdzc2gtcn
NhAAAAAwEAAQAAAgEAs89vY4y4cIobH1AHSQ6lxaaam2LvfH+m1ourQP9SYwAqStU2EZ0H
RegXVDrBZpPQiJhCiCiwtK76CMTSh9qwKNZEOQ7iphjbyD+cGCQA8hanaClZw8kN3ItV87
eluqhjaruhtF35DA5jUG52BrHqu05azjCKqI6mtQYs1ZD/RVB6yhFpJZUOm63KBP+1Cqkc
6/TPGA0MxRuLczUusI3ho+DebneJijTWdAT4Qifa+k902tlK85L6MUVVs1tjTzmCFn3+wq
1tIu3ZXEsVJLg6KguQ3K8iqQ2yYae2xemc4pBLFIvsDgaJaSpusktWpHSdPs0xyEirRPvU
GXoks/rS7KiQolM7uHdiY4FkmiqZOynbEIw5KEvAg+pigFwkF5RMg0U/M/VtUHfBiYFU9b
AvJSRRzcZhbwY37kNoNkBVMn53ioT6V3NUlPimQVYFcQ4OkjvGRZyZ9RQnl2wOsq6rX6sX
A1LzXaQzcHhhHD6cGUuUNd1Uc9CSOiVXC6iQLmMc6Qj4/nDm/uIX7cnPgW1AfcG98bElUa
3EpI4MvY35S3vmagHOwRCu1KZzWCw3rFtvGUT4Qi4rJSmgLhOYg79tRdA+eMyfqso1EROW
1i4GSsHY9pfiD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pWu/r6sZwjDSjVazuufLVI
vye/bOI6Hs0SkAAAEBANkuq7LUbY59/ZZ84X3WiSB5qa8U2XaOQuRhLN0c1hiA8/eabvUw
zuU/9pdfCUuRnKe/RKuo8LrbqVXmoVj/7uXNSF/cjCGkFYKjEjL6mOPuY9HhMydmhtql5q
vUo7PD4tkF7LSZ0WFUYvAg1p8MwbTpz4ahXWpY3l5ERdUNeiSJDxr52xlQ5CYd/4iZayqk
Aeg475R7xcdqZQpLqbzzULrpE9BaGG5dBnBdAN5PucZMxZidKDIqsOI5SRmui3YmrOWXU/
yGVxZy3S0Ja89Ek1q6GCW4qQC3zcwI+wRTlYQhlAyKKHSuirsQ0hsJFTSNnfw0ttAmANfA
/3La20/3DDMAAAAXZW9hZG1pbkBzcmUwODA4Ni15YWViejIBAgME
-----END OPENSSH PRIVATE KEY-----

References:

Follow related article to understand all the step during generation of public and private key for NativeEdge deployments: Dell NativeEdge: How to generate private and public keys for NativeEdge deployments

Affected Products

NativeEdge Solutions, NativeEdge
Article Properties
Article Number: 000227815
Article Type: How To
Last Modified: 20 Aug 2024
Version:  1
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.