crashdump (tools v4.1.4)

Copy Markdown View Source

A Tool for Handling Erlang Crash Dumps

This module contains functions for decrypting encrypted Erlang crash dumps, which can be enabled with the --enable-encrypted-crash-dumps build flag.

Summary

Functions

Decrypts the Erlang crash dump at EncryptedFile using PrivateKey.

Decrypts the Erlang crash dump at EncryptedFile using PrivateKey, writing the result to DecryptedFile.

This is a convenience wrapper around crashdump:decrypt/2 that handles key extraction from a given PEM file.

This is a convenience wrapper around crashdump:decrypt/3 that handles key extraction from a given PEM file.

Functions

decrypt(EncryptedFile, PrivateKey)

(since OTP @OTP-20085@)
-spec decrypt(EncryptedFile, PrivateKey) -> {ok, erlang:iovec()} | {error, Reason}
                 when
                     EncryptedFile :: file:name(),
                     PrivateKey :: public_key:private_key(),
                     Reason :: dynamic().

Decrypts the Erlang crash dump at EncryptedFile using PrivateKey.

decrypt(EncryptedFile, PrivateKey, DecryptedFile)

(since OTP @OTP-20085@)
-spec decrypt(EncryptedFile, PrivateKey, DecryptedFile) -> ok | {error, Reason}
                 when
                     EncryptedFile :: file:name(),
                     PrivateKey :: public_key:private_key(),
                     DecryptedFile :: file:name(),
                     Reason :: dynamic().

Decrypts the Erlang crash dump at EncryptedFile using PrivateKey, writing the result to DecryptedFile.

pem_decrypt(EncryptedFile, KeyFile)

(since OTP @OTP-20085@)
-spec pem_decrypt(EncryptedFile, KeyFile) -> {ok, erlang:iovec()} | {error, Reason}
                     when EncryptedFile :: file:name(), KeyFile :: file:name(), Reason :: dynamic().

This is a convenience wrapper around crashdump:decrypt/2 that handles key extraction from a given PEM file.

pem_decrypt(EncryptedFile, KeyFile, DecryptedFile)

(since OTP @OTP-20085@)
-spec pem_decrypt(EncryptedFile, KeyFile, DecryptedFile) -> ok | {error, Reason}
                     when
                         EncryptedFile :: file:name(),
                         KeyFile :: file:name(),
                         DecryptedFile :: file:name(),
                         Reason :: dynamic().

This is a convenience wrapper around crashdump:decrypt/3 that handles key extraction from a given PEM file.