Skip to content

Commit 3f32e21

Browse files
authored
[docs] Add troubleshooting topic for failed to parse private key error (#18444) (#18749)
1 parent c9674ec commit 3f32e21

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

libbeat/docs/shared-faq.asciidoc

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,11 +105,24 @@ TIP: For testing purposes only, you can set `verification_mode: none` to disable
105105

106106
Here are some common errors and ways to fix them:
107107

108+
* <<failed-to-parse-private-key,tls: failed to parse private key>>
108109
* <<cannot-validate-certificate,x509: cannot validate certificate>>
109110
* <<getsockopt-no-route-to-host,getsockopt: no route to host>>
110111
* <<getsockopt-connection-refused,getsockopt: connection refused>>
111112
* <<target-machine-refused-connection,No connection could be made because the target machine actively refused it>>
112113

114+
[[failed-to-parse-private-key]]
115+
===== tls: failed to parse private key
116+
117+
This might occur for a few reasons:
118+
119+
* The encrypted file is not recognized as an encrypted PEM block. {beatname_uc}
120+
tries to use the encrypted content as the final key, which fails.
121+
* The file is correctly encrypted in a PEM block, but the decrypted content is
122+
not a key in a format that {beatname_uc} recognizes. The key must be encoded as
123+
PEM format.
124+
* The passphrase is missing or has an error.
125+
113126
[[cannot-validate-certificate]]
114127
===== x509: cannot validate certificate for <IP address> because it doesn't contain any IP SANs
115128

0 commit comments

Comments
 (0)