Package burp.mcp.util

Class TlsManager

java.lang.Object
burp.mcp.util.TlsManager

public class TlsManager extends Object
TLS/SSL manager for the MCP server. Two modes: self_signed — generates an in-memory PKCS12 keystore with a self-signed cert custom — loads a user-provided PKCS12 keystore from disk
  • Constructor Details

    • TlsManager

      public TlsManager()
  • Method Details

    • createSelfSigned

      public static SSLServerSocketFactory createSelfSigned(String cn, char[] password) throws Exception
      Create an SSLServerSocketFactory from a self-signed certificate generated in memory. The cert CN is set to the bind address.
      Throws:
      Exception
    • createSelfSignedContext

      public static SSLContext createSelfSignedContext(String cn, char[] password) throws Exception
      Create an SSLContext with an in-memory self-signed certificate. Shared by the server socket factory above and integration tests that need a local TLS target.
      Throws:
      Exception
    • createFromKeystore

      public static SSLServerSocketFactory createFromKeystore(String keystorePath, char[] password) throws Exception
      Create an SSLServerSocketFactory from a PKCS12 keystore file.
      Throws:
      Exception