Self-signed certificate: Difference between revisions
m Typo |
GreenC bot (talk | contribs) Rescued 1 archive link. Wayback Medic 2.5 |
||
Line 18: | Line 18: | ||
The values in a self-signed certificate can only be trusted when the values were verified out-of-band during the acceptance of the certificate, and there is a method to verify the self-signed certificate has not changed after it was trusted. For example, the procedure of trusting a self-signed certificate includes a manual verification of validity dates, and a hash of the certificate is incorporated into the white list.<ref>{{Cite web|url=https://ananich.pro/2020/06/how-to-bypass-javax-net-ssl-sslhandshakeexception/|title=How to bypass SSLHandshakeException|language=en|access-date=2021-08-01|archive-date=2021-08-01|archive-url=https://web.archive.org/web/20210801154451/https://ananich.pro/2020/06/how-to-bypass-javax-net-ssl-sslhandshakeexception/|url-status=live}}</ref> When the certificate is presented for an entity to validate, they first verify the hash of the certificate matches the reference hash in the white-list, and if they match (indicating the self-signed certificate is the same as the one that was formally trusted) then the certificate's validity dates can be trusted. Special treatment of X.509 certificate fields for self-signed certificate can be found in RFC 3280.<ref name=":0">{{Cite journal|url=https://tools.ietf.org/html/rfc3280|title=Certificate and CRL Profile – RFC 3280|website=tools.ietf.org|date=May 2002|language=en|access-date=2017-04-06|last1=Housley|first1=Russ|last2=Polk|first2=Tim|last3=Ford|first3=Warwick S.|last4=Solo|first4=David|journal=|archive-date=2017-04-26|archive-url=https://web.archive.org/web/20170426221401/https://tools.ietf.org/html/rfc3280|url-status=live}}</ref> |
The values in a self-signed certificate can only be trusted when the values were verified out-of-band during the acceptance of the certificate, and there is a method to verify the self-signed certificate has not changed after it was trusted. For example, the procedure of trusting a self-signed certificate includes a manual verification of validity dates, and a hash of the certificate is incorporated into the white list.<ref>{{Cite web|url=https://ananich.pro/2020/06/how-to-bypass-javax-net-ssl-sslhandshakeexception/|title=How to bypass SSLHandshakeException|language=en|access-date=2021-08-01|archive-date=2021-08-01|archive-url=https://web.archive.org/web/20210801154451/https://ananich.pro/2020/06/how-to-bypass-javax-net-ssl-sslhandshakeexception/|url-status=live}}</ref> When the certificate is presented for an entity to validate, they first verify the hash of the certificate matches the reference hash in the white-list, and if they match (indicating the self-signed certificate is the same as the one that was formally trusted) then the certificate's validity dates can be trusted. Special treatment of X.509 certificate fields for self-signed certificate can be found in RFC 3280.<ref name=":0">{{Cite journal|url=https://tools.ietf.org/html/rfc3280|title=Certificate and CRL Profile – RFC 3280|website=tools.ietf.org|date=May 2002|language=en|access-date=2017-04-06|last1=Housley|first1=Russ|last2=Polk|first2=Tim|last3=Ford|first3=Warwick S.|last4=Solo|first4=David|journal=|archive-date=2017-04-26|archive-url=https://web.archive.org/web/20170426221401/https://tools.ietf.org/html/rfc3280|url-status=live}}</ref> |
||
Revocation of self-signed certificates differs from CA-signed certificates. By nature, no entity (CA or others) can revoke a self-signed certificate. But one could invalidate a self-signed CA by removing it from the trust whitelist.<ref>{{Cite web |url=http://www.ietf.org/rfc/rfc2459.txt |title=RFC 2459: Internet X.509 Public Key Infrastructure Certificate and CRL Profile |date=January 1999 |website=www.ietf.org |access-date=2009-01-03 |archive-date=2012-12- |
Revocation of self-signed certificates differs from CA-signed certificates. By nature, no entity (CA or others) can revoke a self-signed certificate. But one could invalidate a self-signed CA by removing it from the trust whitelist.<ref>{{Cite web |url=http://www.ietf.org/rfc/rfc2459.txt |title=RFC 2459: Internet X.509 Public Key Infrastructure Certificate and CRL Profile |date=January 1999 |website=www.ietf.org |access-date=2009-01-03 |archive-date=2012-12-14 |archive-url=https://web.archive.org/web/20121214113250/http://www.ietf.org/rfc/rfc2459.txt |url-status=live }}</ref> |
||
== Uses == |
== Uses == |
Revision as of 03:36, 26 June 2022
In cryptography and computer security, self-signed certificates are public key certificates that their users issue on their own behalf, as opposed to a certificate authority (CA) issuing them. These certificates are easy to make and do not cost money. However, they do not provide any trust value.
For instance, if a website owner uses a self-signed certificate to provide HTTPS services, people who visit that website cannot be certain that they are connected to their intended destination. For all they know, malicious third-party could be redirecting the connection using another self-signed certificate bearing the same holder name. The connection is still encrypted, but does not lead to its intended target. In comparison, a CA-signed certificate prevents this attack because the user's web browser separately validates the certificate against the issuing CA. The attacker's certificate fails this validation.
Self-signed certificates, however, have their own limited uses. They have full trust value when the issuer and the sole user are the same entity. For example, the Encrypting File System on Microsoft Windows issues a self-signed certificate on behalf of the encrypting user and uses it to transparently decrypt data on the fly. Another example is root certificate, which is a form of self-signed certificate.
Benefits
Self-signed certificates can be created for free, using a wide variety of tools including OpenSSL, Java's keytool, Adobe Reader, wolfSSL and Apple's Keychain. They are easy to customize; e.g, they can have larger key sizes or hold additional metadata. Their use doesn't involve the problems of trusting third parties that may improperly sign certificates. Self-signed certificate transactions usually present a far smaller attack surface by eliminating both the complex certificate chain validation,[1] and CA revocation checks like CRL and OCSP.
Trust issues
In a CA-based PKI system, parties engaged in secure communication must trust a CA, i.e. place the CA certificates in a whitelist of trusted certificates. Developers of web browsers may use procedures specified by the CA/Browser Forum to whitelist well-known, public certificate authorities. Individual groups and companies may whitelist additional, private CA certificates. The trust issues of an entity accepting a new self-signed certificate are similar to the issues of an entity trusting the addition of a new CA certificate. The parties in a self-signed PKI must establish trust with each other (using procedures outside the PKI), and confirm the accurate transfer of public keys e.g. compare the certificate's cryptographic hash out of band.
There are many subtle differences between CA signed and self-signed certificates, especially in the amount of trust that can be placed in the security assertions of the certificate. Some CAs can verify the identity of the person to whom they issue a certificate; for example the US military issues their Common Access Cards in person, with multiple forms of other ID. The CA can attest identity values like these by including them in the signed certificate. The entity that validates the certificate can trust the information in that certificate, to the same extent that they trust the CA that signed it (and by implication, the security procedures the CA used to verify the attested information).
With a self-signed certificate by contrast, trust of the values in the certificate are more complicated because the entity possesses the signing key, and can always generate a new certificate with different values. For example, the validity dates of a self-signed certificate might not be trusted because the entity could always create and sign a new certificate that contained a valid date range.
The values in a self-signed certificate can only be trusted when the values were verified out-of-band during the acceptance of the certificate, and there is a method to verify the self-signed certificate has not changed after it was trusted. For example, the procedure of trusting a self-signed certificate includes a manual verification of validity dates, and a hash of the certificate is incorporated into the white list.[2] When the certificate is presented for an entity to validate, they first verify the hash of the certificate matches the reference hash in the white-list, and if they match (indicating the self-signed certificate is the same as the one that was formally trusted) then the certificate's validity dates can be trusted. Special treatment of X.509 certificate fields for self-signed certificate can be found in RFC 3280.[1]
Revocation of self-signed certificates differs from CA-signed certificates. By nature, no entity (CA or others) can revoke a self-signed certificate. But one could invalidate a self-signed CA by removing it from the trust whitelist.[3]
Uses
Self-signed certificates have limited uses, e.g. in the cases where the issuer and the sole user are the same entity. For example, the Encrypting File System on Microsoft Windows issues a self-signed certificate on behalf of a user account to transparently encrypt and decrypt files on the fly. Another example is root certificate, which is a form of self-signed certificate.
See also
- Certificate authority § Implementation weakness of the trusted third party scheme
- X.509, the standard describing the most widely used format for storing certificates
- Let's Encrypt, a certificate authority which provides free domain-validated certificates[4]
References
- ^ a b Housley, Russ; Polk, Tim; Ford, Warwick S.; Solo, David (May 2002). "Certificate and CRL Profile – RFC 3280". tools.ietf.org. Archived from the original on 2017-04-26. Retrieved 2017-04-06.
- ^ "How to bypass SSLHandshakeException". Archived from the original on 2021-08-01. Retrieved 2021-08-01.
- ^ "RFC 2459: Internet X.509 Public Key Infrastructure Certificate and CRL Profile". www.ietf.org. January 1999. Archived from the original on 2012-12-14. Retrieved 2009-01-03.
- ^ "Public Beta". Let's encrypt. Archived from the original on 2018-04-07. Retrieved 2015-12-06.