I know that if i used HTTPS the connection will established after the handshake so (the user will ping the the link then the server will give him public key so the client can provide him with encrypted data only the sever can de-crypt because only the sever have the secret key)
now my question is why we use the ssl pinning and for example we impended the certificate into an application. ( i know that with with ssl pinning any hacker can't perform man in the middle attack and intercept the data but my question is where is the point of that)
in other word if I didn't do SSL pinning the attacker could intercept the data but with me using HTTPS the comunication with be encrypted and the attacker can gain nothing.