AMNet:ImportCertificates

AMNet:ImportCertificates

Request #

Index WordDescription
0Header code [0x08190108]
1First Certificate Size
2Second Certificate Size
3Third Certificate Size
4Fourth Certificate Size
5(First Certificate Size << 4) | 0xA
6First Certificate Input Pointer
7(Second Certificate Size << 4) | 0xA
8Second Certificate Input Pointer
9(Third Certificate Size << 4) | 0xA
10Third Certificate Input Pointer
11(Fourth Certificate Size << 4) | 0xA
12Fourth Certificate Input Pointer

Response #

Index WordDescription
0Header code
1Result code

Description #

This is called before AMNet:BeginImportTicket to set the certificate chain for the tickets to be installed. You can submit up to four certificates at a time, and if you have more than four, you can make multiple calls. If you have less than four certificates, you can pass in NULL for the pointers, 0 for the sizes, and value 10 for the buffer-headers(word before the buf-ptr(s)).

This also verifies each cert with the issuer, etc. When attempting to use this command with the exact same cert which was already added with this command, this command will return 0 without actually adding the cert to the chain(no additional cert in ARM9-mem anywhere).

This is a wrapper for AMPXI command 0x003D0108.