Package burp.mcp.util
Class TlsManager
java.lang.Object
burp.mcp.util.TlsManager
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SSLServerSocketFactorycreateFromKeystore(String keystorePath, char[] password) Create an SSLServerSocketFactory from a PKCS12 keystore file.static SSLServerSocketFactorycreateSelfSigned(String cn, char[] password) Create an SSLServerSocketFactory from a self-signed certificate generated in memory.static SSLContextcreateSelfSignedContext(String cn, char[] password) Create an SSLContext with an in-memory self-signed certificate.
-
Constructor Details
-
TlsManager
public TlsManager()
-
-
Method Details
-
createSelfSigned
Create an SSLServerSocketFactory from a self-signed certificate generated in memory. The cert CN is set to the bind address.- Throws:
Exception
-
createSelfSignedContext
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
-