Skip to content

Support external EC cert/key using --management-external-xxx

[email protected]... openvpn-devel 1 version In review

Get series with b4
b4 am [email protected]...

Versions newest first

  1. v1 Latest3 patches 17 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3Refactor ssl_openssl.c in prep for external EC key supportsrc/openvpn/ssl_openssl.c+41 -242 replies
2/3Allow external EC key through --management-external-keysrc/openvpn/manage.c src/openvpn/manage.h src/openvpn/ssl_openssl.c+202 -024 replies
3/3Document management request >ECDSA_SIGN and response ecdsa-sigdoc/management-notes.txt+30 -05 replies

Reviews trailers per patch

1 of 3 patches has a Reviewed-by or Acked-by.

PatchArne Schwabe
1/3
2/3T-b A-b
3/3

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [Openvpn-devel] [PATCH 0/3] Support external EC cert/key using --management-external-xxx

From: Selva Nair <[email protected]...>

Hi,

For now this is only for openssl 1.1.0+. With some ifdefs and compat functions could be back ported to 1.0.2.

For 1.0.1 hacks like duplicating internal ECDSA_METHOD struct or linking to internal headers appears to be required. Not interesting unless there is a strong demand.

For mbedtls I've no idea how to hook into the ecdsa signing methods.

Tested on linux/openssl-1.1.0g by manually passing the signature to management, with signature generated on command line by
'echo $rsa_sig_cut_n_paste | base64 -d | openssl pkeyutl -inkey keyfile | base64'

Doing something similar for cryptoapicert is in the works (actually that was the objective, but this was obviously easier to test, lather, rinse)

Selva

Selva Nair (3):
Refactor ssl_openssl.c in prep for external EC key support Allow external EC key through --management-external-key Document management request >ECDSA_SIGN and response ecdsa-sig

 doc/management-notes.txt  |  30 ++++++
 src/openvpn/manage.c      |  30 ++++++
 src/openvpn/manage.h      |   3 +
 src/openvpn/ssl_openssl.c | 234 +++++++++++++++++++++++++++++++++++++++++-----
 4 files changed, 273 insertions(+), 24 deletions(-)
Signature · 1 line
2.1.4