Extend RFC-7427 Signature Authentication support to IKEv2 with ECDSA: Difference between revisions

From Libreswan
Jump to navigation Jump to search
No edit summary
No edit summary
Line 10: Line 10:


1.  Fixing the RSA only public key code
1.  Fixing the RSA only public key code
Major changes in ikev2_keys.c and secrets.c to


2. Support for configuring  authby=ecdsa
2. Support for configuring  authby=ecdsa


3. Signature generation and Verification through NSS APIs
3. Signature Verification through NSS APIs


4. Test Suite changes
4. Test Suite changes
Line 20: Line 22:


== Issues encountered ==
== Issues encountered ==
 
NSS looks for specific x509v3 certificate extensions in the end certificates and It is unclear which one is exactly missing in the certificates being used.
This error has be be debugged further (as there is little information from the nss logs):
(SECERR: 35 (0x23): Certificate extension not found.)
Due to this, the private key cannot be obtained through these APIs : PK11_FindKeyByKeyID and PK11_FindKeyByAnyCert


== Future work ==
== Future work ==

Revision as of 02:14, 14 August 2018

Introduction

As part of Google summer of Code work in 2017 described in , RFC-7427 Digital Signature Authentication was implemented with support for RSA. This work is an extension to support ECDSA. Implementation of ECDSA requires the modification of the existing Libreswan public key code to fix the RSA only parts so that it is able to accept different new types of keys in the future ( not just limited to ECDSA ). This will ensure compliance to RFC-7427 and RFC-8247.


Implementation

To make Libreswan RFC 7427 and RFC 8247 compliant, the following items have been implemented :

1. Fixing the RSA only public key code

Major changes in ikev2_keys.c and secrets.c to

2. Support for configuring authby=ecdsa

3. Signature Verification through NSS APIs

4. Test Suite changes

The Test Suite was extended by adding test cases to verify feature functionality and perform interoperability tests with strongswan.

Issues encountered

NSS looks for specific x509v3 certificate extensions in the end certificates and It is unclear which one is exactly missing in the certificates being used. This error has be be debugged further (as there is little information from the nss logs):

(SECERR: 35 (0x23): Certificate extension not found.)

Due to this, the private key cannot be obtained through these APIs : PK11_FindKeyByKeyID and PK11_FindKeyByAnyCert

Future work

Source code

This project work was sponsored by Google as part of the Google Summer of Code 2018 Program. The implementation for this project is done by Sahana Prasad (sahana.prasad07@gmail.com) under the tutelage of Paul Wouters.

Use Cases and Requirements document for ECC/ECDSA support