To start, we need these commands to create the certificate.
openssl req -x509 -days 730 -nodes - newkey rsa:2048 outform der -keyout server.key -out ca.der
After that code, it will require you to put in information on the certificate. Then after completing it, run these codes to finish the certificate.
openssl rsa -in server.key -inform pem -out server.key.der -outform der
openssl pkcs8 -topk8 -in server.key.der -inform der - out server.key.pkcs8.der -outform der -nocrypt
After making the certificate, open burpsuite and import the certificate.
Then after, you will need to configure the proxy to the desired IP that is running burpsuite.