hwdsl2 / setup-ipsec-vpn

Scripts to build your own IPsec VPN server, with IPsec/L2TP, Cisco IPsec and IKEv2
Other
24.9k stars 6.28k forks source link

in ikev2setup.sh shouldn't this use openssl sha2 #1552

Closed aflashback closed 4 months ago

aflashback commented 4 months ago

Checklist

Describe the issue in ikev2setup.sh file export_p12_file method I see all openssh commands are using sha1 shouldn't this be sha2 , is there a reason ?

example: openssl pkcs12 -keypbe PBE-SHA1-3DES -certpbe PBE-SHA1-3DES

Thanks!

letoams commented 4 months ago

Describe the issue in ikev2setup.sh file export_p12_file method I see all openssh commands are using sha1 shouldn't this be sha2 , is there a reason ?

example: openssl pkcs12 -keypbe PBE-SHA1-3DES -certpbe PBE-SHA1-3DES

Sadly, Apple doesn’t support all pkcs12 wrappings. It doesn’t do aes, only 3des. Not sure if it supports sha2

Paul

hwdsl2 commented 4 months ago

@aflashback Hello! Yes, this is mainly for compatibility with VPN client devices, such as iPhones and iPads. For a personal VPN, using 3DES and SHA1 for IKEv2 certificates should be fine from a security perspective.