Open Finder and go to Applications -> Utilities -> Keychain Access
Double click on Keychain to open it
On the left, click on Certificates
Highlight the certificate to export and open File -> Export
Choose an appropriate filename (mycert.pfx) and directory.