This question already has an answer here:
When I create a new account using Geth, it creates a UTC file corresponding to the account. All I know is that the UTC file consists of an encrypted private key.
How can I decrypt this? How can I extract its corresponding public key?
Detailed steps would be great.