Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions mitm/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,11 @@ By default, when using the MITM module with LittleProxy, the CA Root Certificate

// save the newly-generated Root Certificate and Private Key -- the .cer file can be imported
// directly into a browser
rootCertificateGenerator.saveRootCertificateAsPemFile(new File("/tmp/certificate.cer");
rootCertificateGenerator.savePrivateKeyAsPemFile(new File("/tmp/private-key.pem", "password");
rootCertificateGenerator.saveRootCertificateAsPemFile(new File("/tmp/certificate.cer"));
rootCertificateGenerator.savePrivateKeyAsPemFile(new File("/tmp/private-key.pem"), "password");

// or save the certificate and private key as a PKCS12 keystore, for later use
rootCertificateGenerator.saveRootCertificateAndKey("PKCS12", new File("/tmp/keystore.p12",
rootCertificateGenerator.saveRootCertificateAndKey("PKCS12", new File("/tmp/keystore.p12"),
"privateKeyAlias", "password");

// tell the ImpersonatingMitmManager use the RootCertificateGenerator we just configured
Expand Down Expand Up @@ -161,4 +161,4 @@ significant performance benefits. The MITM module itself requires no additional
See Netty's OpenSSL instructions for details: http://netty.io/wiki/requirements-for-4.x.html#tls-with-openssl

## Acknowledgements
The MITM module would not have been possible without the efforts of Frank Ganske, the Zed Attack Proxy, and Brad Hill. Thank you for all your excellent work!
The MITM module would not have been possible without the efforts of Frank Ganske, the Zed Attack Proxy, and Brad Hill. Thank you for all your excellent work!