extract-tls-secrets
extract-tls-secrets copied to clipboard
Cannot attach to the process
When I try to run the command:
java -jar extract-tls-secrets-4.0.0.jar <pid> /tmp/secrets.log
I get the error:
Failed to attach to java process <pid>. Cause: Agent JAR loaded but agent failed to initialize
@gresm can you make sure you are using the same java distributions for both the target process and the extract-tls-secrets process. Also can you try with a JDK installation.
What OS and Java version are you using?
Operationg system:
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 21.10
Release: 21.10
Codename: impish
Java version:
$ java --version
openjdk 11.0.15 2022-04-19
OpenJDK Runtime Environment (build 11.0.15+10-Ubuntu-0ubuntu0.21.10.1)
OpenJDK 64-Bit Server VM (build 11.0.15+10-Ubuntu-0ubuntu0.21.10.1, mixed mode, sharing)
$ java -version
openjdk version "11.0.15" 2022-04-19
OpenJDK Runtime Environment (build 11.0.15+10-Ubuntu-0ubuntu0.21.10.1)
OpenJDK 64-Bit Server VM (build 11.0.15+10-Ubuntu-0ubuntu0.21.10.1, mixed mode, sharing)
Version of the java used by the process
openjdk 11.0.14.1 2022-02-08
OpenJDK Runtime Environment JBR-11.0.14.1.1-2043.45-jcef (build 11.0.14.1+1-b2043.45)
OpenJDK 64-Bit Server VM JBR-11.0.14.1.1-2043.45-jcef (build 11.0.14.1+1-b2043.45, mixed mode)
openjdk version "11.0.14.1" 2022-02-08
OpenJDK Runtime Environment JBR-11.0.14.1.1-2043.45-jcef (build 11.0.14.1+1-b2043.45)
OpenJDK 64-Bit Server VM JBR-11.0.14.1.1-2043.45-jcef (build 11.0.14.1+1-b2043.45, mixed mode)
It seems like the version that program uses is different, but after using the same version still failed...