Currently, I have created a certificate and a private key with a password set to "privateKeyPass".
I then combined the two to create a p12 file and set a password called "keyPass".
And to check whether the private key password of the p12 file was set properly, I checked the p12 file with the following command.
openssl pkcs12 -info -in certificate.p12
When I entered the password for the p12 file,
the following command appeared and I entered the password "incorrectPassword", which was different from when it was created.
Enter PEM pass phrase: incorrectPassword
Then, “Verifying - Enter PEM pass phrase:” was displayed,
and when I entered the same password again, the properly encrypted private key came out.
Enter PEM pass phrase:incorrectPassword Verifying - Enter PEM pass phrase:incorrectPassword
-----BEGIN ENCRYPTED PRIVATE KEY-----
...
-----END ENCRYPTED PRIVATE KEY-----
I have two questions at this time.
If the private key password is incorrect, isn't it normal for the private key to not be visible?
Is entering the private key password twice a process of resetting the private key password?
I'm asking a question because I can't find the answer.