Source: http://www.hit.bme.hu/~buttyan/courses/Revkomarom/ssl.pdf