What is an SSL certificate ?gates
What is an SSL certificate and what is it used for?
SSL certificates are used to create an encrypted channel between client and server. Transmission of such data as credit card details, account login information, any other sensitive information has to be encrypted to prevent eavesdropping.
With an SSL certificate data is encrypted prior to being transmitted via Internet. Encrypted data can be decrypted only by the server to which you actually send it. This is a warranty that information you submit to websites will not be stolen.
Starting from 06/08/2014 Google announced that having an SSL certificate installed on your web site will increase your ranking position, which is another great reason to use SSL.
Certificate itself represents base64 encoded data that contains information about the entity the certificate was issued for, public key required for encryption and digital signature verification, and digital signature created with the private key of the certificate issuer.
An SSL certificate has to be installed on the server side. When you access a website secured by an SSL certificate issued by a trusted Certificate Authority, you will see https:// at the beginning of its URL. Depending on the type of validation a certificate applicant passed prior to the certificate issuance, a browser may also show connection as secure by displaying a“lock” icon in the address bar:
or showing the Name of your organization:
2. Types of SSL certificates
SSL certificates can be divided into 3 validation groups:
Requires a certificate applicant to prove his/her control over the domain name only. The issued certificate contains a domain name that was supplied to the certificate authority within a certificate request.
Requires a certificate applicant to prove that his/her company is a registered and legally accountable business, and pass domain validation. The issued certificate contains a domain and company name of the certificate applicant.
Includes validation requirements of two validation types mentioned above and additional requirements. The issued certificate contains a domain and company name of the certificate applicant. It is worth mentioning that only Extended Validation certificates provide with a green bar display with an owner’s company name in web browsers.
- Asymmetric cryptography – ciphers that imply different keys for encryption and decryption processes.
- Cipher suite – a set of key exchange, authentication, encryption and message authentication code (MAC) algorithms used within SSL/TLS protocols.
- Handshake – a protocol use within SSL/TLS for purpose of security parameters negotiation.
- Key exchange – in context of SSL/TLS the way client and server securely establish a pre-master secret for a session
- Master secret – key material used for generation of encryption keys, MAC secrets and initialization vectors (IVs)
- Message Authentication Code (MAC) – one-way hash function computed over a message and a secret
- Pre-master secret – key material used for the master secret derivation
- Symmetric cryptography – ciphers that imply the same key both for encryption and decryption processes
4. Symmetric & Asymmetric cryptography
Two types of cryptography are being used by SSL/TLS protocols: symmetric and asymmetric.
Symmetric cryptography (also called “bulk encryption”) implies the same key for encryption as well as for decryption. In SSL/TLS symmetric ciphers generally are used for application data encipherment.
Examples of symmetric ciphers: AES, RC4, DES
Asymmetric cryptography (also called “public key cryptography”) implies different keys for encryption and decryption.
Public key contained in a CSR and subsequently in an SSL certificate is used for encryption and signature verification. A private key which is typically kept on the server may be used, depending on the cipher suite negotiated during handshake, either for decryption of pre-master secret required for computation of a master secret, or for signing parameters required to compute a master secret.
In plain words in context of SSL/TLS protocols, asymmetric encryption serves the purpose of secure symmetric encryption key computation for both sides (client/server).
Example of asymmetric cryptosystems: RSA, DHE, ECDHE
5. Cipher Suite
Cipher suite is a set of key exchange, authentication, encryption and message authentication code (MAC) algorithms used within SSL/TLS protocols.
Cipher suite TLS_DHE_RSA_WITH_AES_256_GCM_SHA384 implies
– DHE for key exchange
– RSA for authentication
– AEC_256_GCM for bulk encryption
– SHA384 is a hash function used for MAC computations
Handshake – is a protocol used within SSL/TLS for the purpose of security parameters negotiation. Depending on the cipher suite, a handshake can consist of different messages that parties send to each other.
The diagram below describes one of the most common handshake message flows that imply premaster key encipherment with RSA public key. Such a handshake message flow is applicable for cipher suites as follows (examples):