This does not work as described.
I tried "-cert" with "@" and a file name containing a PEM-encoded certificate and received an error:
END CERTIFICATE----" is not a valid option
This seems to indicate a parsing problem. I also tried pasting the entire PEM-encoded certificate on the command line inside single quotes. I saw no errors related to the -cert option, but got the usual complaint about failing to validate the server's certificate.