SPKAC

From HandWiki
Short description: Data format for sending a certificate signing request

SPKAC (Signed Public Key and Challenge, also known as Netscape SPKI) is a format for sending a certificate signing request (CSR): it encodes a public key, that can be manipulated using OpenSSL.[1] It is created using the little documented HTML keygen element[2] inside a number of Netscape compatible browsers.

Standardisation

There exists an ongoing effort to standardise SPKAC through an Internet Draft in the Internet Engineering Task Force (IETF). The purpose of this work has been to formally define what has existed prior as a de facto standard, and to address security deficiencies, particular with respect to historic insecure use of MD5 that has since been declared unsafe for use with digital signatures as per RFC 6151.[3]

Implementations

HTML5 originally specified the <keygen> element to support SPKAC in the browser to make it easier to create client side certificates through a web service for protocols such as WebID;[4][5] however, subsequent work for HTML 5.1 placed the keygen element "at-risk", and the first public working draft of HTML 5.2 removes the keygen element entirely.[6][7][8] The removal of the keygen element is due to non-interoperability and non-conformity from a standards perspective in addition to security concerns.[9]

The World Wide Web Consortium (W3C) Web Authentication Working Group developed the WebAuthn (Web Authentication) API to replace the keygen element.[10]

Bouncy Castle provides a Java class.[11][12]

An implementation for Erlang/OTP exists too.[13]

An implementation for Python is named pyspkac.[14]

PHP OpenSSL extension as of version 5.6.0.[15]

Node.js implementation.[16]

Deficiencies

The user interface needs to be improved in browsers, to make it more obvious to users when a server is asking for the client certificate.[17]

See also

References

  1. "Documents, spkac(1)". OpenSSL. https://www.openssl.org/docs/man1.1.0/apps/spkac.html. Retrieved 2017-04-05. 
  2. "Html | Mdn". Developer.mozilla.org. 2013-08-15. https://developer.mozilla.org/en-US/docs/HTML/Element/keygen. Retrieved 2013-10-13. 
  3. "RFC 6151 – Updated Security Considerations for the MD5 Message-Digest and the HMAC-MD5 Algorithms". Internet Engineering Task Force. March 2011. https://tools.ietf.org/html/rfc6151. Retrieved 11 November 2013. 
  4. "HTML5 W3C Recommendation 28 October 2014. 4.10.12 The keygen element". W3C. 2014-10-28. https://www.w3.org/TR/html5/forms.html#the-keygen-element. Retrieved 2016-10-17. 
  5. "WebID: creating a global decentralised authentication protocol". W3C. http://www.w3.org/wiki/WebID. Retrieved 2013-10-13. 
  6. Nevile, Chaals (2016-06-03). "Re: Call for Consensus - Remove <keygen> from HTML". W3C HTML Working Group (Mailing list). Retrieved 2016-10-17.
  7. "HTML5.1: CR 21 June 2016. Status of this document". W3C. 2016-06-21. https://www.w3.org/TR/2016/CR-html51-20160621/#status. Retrieved 2016-10-17. 
  8. "HTML 5.2: First Public WD. Changes from HTML 5.1". W3C. 2016-08-18. https://www.w3.org/TR/html52/changes.html#changes-fpwd. Retrieved 2016-10-17. 
  9. W3C Technical Architecture Group (2015-11-30). "Keygen and Client Certificates". W3C. https://w3ctag.github.io/client-certificates. Retrieved 2016-10-17. 
  10. Halpin, Harry; Appelquist, Daniel; Mill, Eric; Gmür, Reto (2016-05-31). "Re: removing keygen from HTML". W3C WWW Technical Architecture Group (Mailing list). Retrieved 2016-10-17.
  11. "Bouncy Castle Java Documentation". http://www.bouncycastle.org/docs/docs1.5on/org/bouncycastle/jce/netscape/NetscapeCertRequest.html. Retrieved 2013-12-06. 
  12. "foaf-protocols] spkac test implementation in Java". Lists.foaf-project.org. http://lists.foaf-project.org/pipermail/foaf-protocols/2009-January/000144.html. Retrieved 2013-10-13. 
  13. "ztmr/espkac @ GitHub". Github.com. https://github.com/ztmr/espkac. Retrieved 2013-10-13. 
  14. "pyspkac". Github.com. https://github.com/FFM/pyspkac. Retrieved 2013-12-06. 
  15. "php 5.6.0 OpenSSL Native SPKAC support". http://php.net/manual/en/migration56.openssl.php. 
  16. "node.js spki support". https://nodejs.org/api/crypto.html#crypto_class_certificate. 
  17. "User tracking with SSL certificates in Firefox - The H Security: News and Features". Heise-online.co.uk. 2007-09-19. Archived from the original on 2008-09-19. https://web.archive.org/web/20080919045733/http://www.heise-online.co.uk/security/User-tracking-with-SSL-certificates-in-Firefox--/news/96239. Retrieved 2013-10-13. 

External links