Hacking RELEASE CertNXtractionPack - Get your Switch cert from a NAND dump!

  • Thread starter Thread starter SimonMKWii
  • Start date Start date
  • Views Views 142,761
  • Replies Replies 329
  • Likes Likes 29
1) My script
2) 02_convert_to_der.py
3) 03_save_as_pfx.bat

(you may have to modify the 03 to use type instead of cat if you don't have mingw installed)

Code:
openssl x509 -inform DER -in clcert.der -outform PEM -out clcert.pem
openssl rsa -inform DER -in privkey.der -outform PEM -out privkey.pem
type clcert.pem privkey.pem > nx_tls_client_cert.pem
openssl pkcs12 -export -in nx_tls_client_cert.pem -out nx_tls_client_cert.pfx -passout pass:switch
del privk.bin
del clcert.der
del privkey.der
del clcert.pem
del privkey.pem
del nx_tls_client_cert.pem
import binascii, sys, random, asn1
ModuleNotFoundError: No module named 'asn1'

Install ans1 with the command "pip install asn1" but I get an error.

Failed to read Private Key from privk.bin!
 
Last edited by Naminave,
Gotta be able to install ans1... google why you aren't able to install the module...
This is what I did ...

Requirements:
Python and dependencies (asn1 and pycrypto)
PRODINFO.bin of your RawNAND
CertNXtractionPack
CertNXtractionPack.py


Guide:
Download everything and decompress.
Run CMD and install the Python dependencies.
Move your PRODINFO.bin to the CertNXtractionPack folder.
Move your CertNXtractionPack.py to the CertNXtractionPack folder.
edit CertNXtractionPack.py and place your Keys (Or use the first four digits to find the correct Keys)
Run CertNXtractionPack.py in your CMD window
Run 02_convert_to_der.py in your CMD window
Run 03_save_as_pfx.bat in your CMD window

You should have a folder called Out with the nx_tls_client_cert.pfx

It is important to do all this in a CMD window and not just running the script.

Note: I still appear nx_tls_client_cert.pfx with 0KB Solution?
 
Last edited by Naminave,
It worked like a charm and i was able to download my purchased digital copy of Bayoneta.
Now I need a tuto to restore it on my sdcard :D
 
This is what I did ...

Requirements:
Python and dependencies (asn1 and pycrypto)
PRODINFO.bin of your RawNAND
CertNXtractionPack
CertNXtractionPack.py


Guide:
Download everything and decompress.
Run CMD and install the Python dependencies.
Move your PRODINFO.bin to the CertNXtractionPack folder.
Move your CertNXtractionPack.py to the CertNXtractionPack folder.
edit CertNXtractionPack.py and place your Keys (replace the Hash with the real Keys)
Run CertNXtractionPack.py in your CMD window
Run 02_convert_to_der.py in your CMD window
Run 03_save_as_pfx.bat in your CMD window

You should have a folder called Out with the nx_tls_client_cert.pfx

It is important to do all this in a CMD window and not just running the script.

Note: I still appear nx_tls_client_cert.pfx with 0KB Solution?

Did you edit the 03 file and rename cat to type? Try the zip I uploaded...
 
Run python3 -m pip install pycrypto
Untitled.png
 
In that window, type...

pip install -m pycrypto
NO,

this is the python interpreter....

do the following:

you can exit by typing: "exit()"
then just type pip install pycrypto
OR
pip install pycryptodome

btw you seem to not know that the -m option is for python so it knows that you want to call the pip module and the correct command should be:

python -m pip install pycrypto

please test it before posting ._.
 
  • Like
Reactions: Subtle Demise
NO,

this is the python interpreter....

do the following:

you can exit by typing: "exit()"
then just type pip install pycrypto
OR
pip install pycryptodome

btw you seem to not know that the -m option is for python so it knows that you want to call the pip module and the correct command should be:

python -m pip install pycrypto

please test it before posting ._.

Bah calm down, mistakes happen :P
 

Site & Scene News

Popular threads in this forum