The Public Key Infrastructure (PKI) is a complex authentication technique that functions by using digital certificates. These certificates provide a certain level of trust to the communication as they authenticate the sender. PKI uses the concept of Certificate Authority (CA) for the central entity that issues certificates to users. The CA confirms the identity of every user and every user in an organization trusts the CA.
Some situations might not require a central certification authority and one alternative to this approach is using a “web of trust.” With this approach, users sign certificates for people they know and those people sign certificates for other people they know. In this way a web of trust is built and users may accept messages from other users just because they have a common trusted friend.
Most of the modern operating systems have an integrated component that helps manage certificates and keys but you can also use third-party solutions.
PKIs are built to manage certificates, including the issuing, assigning, and verification process. A PKI generally works using one of two encryption types:
- Symmetric encryption
- Asymmetric encryption
Symmetric encryption involves using the same key for both data encryption and decryption. However, most of the time a PKI uses an asymmetric encryption type, which works by providing users with a public key they use to encrypt data sent out on the network. The encrypted data will be decrypted with a different key.
The public and the private keys are created at the same time in order for them to be cryptographically related to each other. When building the keys, you can use a certain level of randomization to ensure increased security. Once the key pair is available, you can provide the public key to all users so they can encrypt data that can be decrypted only by using the associated private key, which is known only by the key pair generator entity.
To increase the level of protection, a certificate is usually valid for a limited period of time. The CA can then revoke it and issue the user a fresh certificate.
Building a PKI involves a lot of planning and it should be done considering the many factors and teams in the organization. A large network may involve using a central CA and a series of subordinate CAs assigned to different regions to properly manage user and machine certificates.