SSL error
It is my first time using this, the problem I'm having is that I keep getting the error on server logs:
TTPS_CLIENT_ERROR on : Error: 140735281049600:error:14094418:SSL routines:ssl3_read_bytes:tlsv1 alert unknown ca:../deps/openssl/openssl/ssl/s3_pkt.c:1487:SSL alert number 48
The site opens but, but I need to mark the certificate as trusted for the main domain name (but usually websites have other subdomains or maybe assets from another ssl domains) which the browser doesn't ask me to allow but silently ignores them (css/js files and other assets won't load)! How can I solve this issue? I want to intercept https traffic not tunnel it
This is the code I'm using, and I set the proxy ip/port on firefox (on Mac)
'use strict';
var Proxy = require('http-mitm-proxy');
var port = 8001;
var proxy = Proxy();
proxy.use(Proxy.wildcard);
proxy.onError(function(ctx, err, errorKind) {
// ctx may be null
var url = (ctx && ctx.clientToProxyRequest) ? ctx.clientToProxyRequest.url : '';
console.error(errorKind + ' on ' + url + ':', err);
});
proxy.listen({ port: port });
console.log('listening on ' + port);
You need to add the mitm proxy CA as a trusted Certificate Authority. That way all of the generated ssl certificates are trusted.
The CA cert can be found in <project_dir>/.http-mitm-proxy/certs/ca.pem
@Codeseer Even after adding the CA as a trusted Certificate Authority (on iOS), I'm still seeing the same error message. Any ideas?
Appreciate your help in advance!
Figured it out, there's an additional toggle that needs to be flipped in Settings > General > About > Certificate Trust Settings. Cheers!