System architect at AraxaTech
It can be done using openssl: openssl s_client -connect SERVER:PORT -showcerts
openssl s_client -connect SERVER:PORT -showcerts
It can be done like this openssl req -new -newkey rsa:2048 -nodes -keyout certificate.key -out certificate.csr
openssl req -new -newkey rsa:2048 -nodes -keyout certificate.key -out certificate.csr
To extract private key:
To extract certificate: