Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

One way SSL is one way encryption?

If one way SSL is used (Server Certificate authentication) then data sent from client gets encrypted using Public key of the server certificate. So privacy protection is available for data sent from client. My questions are

  1. Does this mean that in One way SSL data sent from Server to client is not encrypted and sent as plain text ?

  2. For both server to client and client to server communications the data/message is not signed and so tamper protection or data integrity is not assured. Are there any other means to achieve data integrity while using SSL based transport security and not Message security options ?

like image 828
ideafountain Avatar asked Nov 22 '11 16:11

ideafountain


People also ask

Is SSL One Way encryption?

In one way SSL, only client validates the server to ensure that it receives data from the intended server. For implementing one-way SSL, server shares its public certificate with the clients. It requires a keystore and certificate only on the SSL server side and a truststore only on the SSL client side .

What type of encryption is SSL?

SSL/TLS uses both asymmetric and symmetric encryption to protect the confidentiality and integrity of data-in-transit. Asymmetric encryption is used to establish a secure session between a client and a server, and symmetric encryption is used to exchange data within the secured session.

Is SSL two way?

SSL HandshakeIn Two-Way SSL authentication, the client and server need to authenticate and validate each others identities. The authentication message exchange between client and server is called an SSL handshake, and it includes the following steps: A client requests access to a protected resource.

What is 1 way SSL and 2 way SSL?

One-way authentication creates a truststore on the client and a keystore on the server. In this example, CA certificate "A" exists in the truststore on the SSL client and also in the keystore on the SSL server. Two-way authentication creates a truststore and a keystore on both the client and the server.


1 Answers

One way SSL just means that the server does not validate the identity of the client. It has no effect on any of the other security properties of SSL.

While the SSL protocol is a bit complex, the basic gist of what happens is this: The client generates a random key, encrypts it so that only the server can decrypt it, and sends it to the server. The server and client now have a shared secret that can be used to encrypt and validate the communications in both directions.

The server has no idea of the client's identity, but otherwise, the encryption and message validation is two way.

Update:

1) Yes, encryption both ways is symmetric and uses a shared secret generated during session setup.

2) With a shared secret, message integrity is trivial to assure. You just ensure the message has a particular form. For example, I can prefix every message I send with a sequence number and append a checksum onto it before encryption. You decrypt it with the shared secret and validate the sequence number and checksum. How can an attacker substitute or modify the message without knowing the shared secret and still keep the sequence number and checksum intact?

like image 93
David Schwartz Avatar answered Oct 11 '22 07:10

David Schwartz