The email property that it extracted from emailAddress in the subject distinguished name field of your certificate.
You can perform validation using openssl to create a self-signed certificate (then you can generate a CSR using emailAddress and send it to a certificate authority to create a valid end-entity certificate). To verify this, you can follow these steps:
Create a self-signed certificate using the following openssl command
openssl req -x509 -newkey rsa:2048 -keyout key.pem -out cert.pem -days 365
Then you will be asked to enter the following parameters (all for the certificate subject):

To avoid this prompt, you can directly specify subject in the previous command with -subj as follows:
openssl req -x509 -newkey rsa:2048 -keyout key.pem -out cert.pem -days 365 -subj "/C=ES/ST=58/L=Barcelona/O=yourOrgName/OU=yourDept/CN=yourAppName/ emailAddress=myEmail@test.com "
Now you can generate p12 (or pfx ) from the generated key and certificate using the following command:
openssl pkcs12 -export -out myTestWithMail.pfx -inkey key.pem -in cert.pem
Now you have p12 (myTestWithMail.pfx), which you can use to sign exe or dll with the following signtool . For example, I sign notepad++.exe (as in the examples you specify in your question):
signtool.exe sign /f C:\Users\Albert\myTestWithMail.pfx /p 1234 "C:\Program Files (x86)\Notepad++\notepad++.exe"
Note that /f is for your signature key, and /p is the password for your key.
Now you can see the email in the file you are signing:

So, if you need a certificate from a certification authority, you need to generate a CSR with emailAddress using the openssl command:
openssl req -new -newkey rsa:2048 -nodes -out yourAppName.csr -keyout yourAppName.key -subj "/C=ES/ST=58/L=Barcelona/O=yourOrgName/OU=yourDept/CN=yourAppName/emai lAddress=myEmail@test.com "
Or, alternatively, without specifying the -subj and enter the correct values โโfor the distinguished name of the subject when prompted:
openssl req -new -newkey rsa:2048 -nodes -out yourAppName.csr -keyout yourAppName.key
Hope this helps,