Skip to contentSkip to conversation

Enable FIPS encryption

Openvpn-devel [email protected]... 4 participants 6 messages Dec 2, 2016

lore
Share & tools
lore
#1 lore raw
Quoted 9 lines · On 02/12/16 11:32, [email protected]... wrote:

Hi!

I would like to know if it's possible to enable fips enabled encryption on my vpn server? Here is a link to fips user guide https://www.openssl.org/docs/fips/UserGuide-2.0.pdf . It looks like I'd have to change source code and compile it myself to make it FIPS compliant. Any help or advice would be very much appreciated.

Thanks,
Artem

OpenVPN needs to be adopted to be useful in FIPS mode. We are tracking this issue in trac ticket #725.

http://community.openvpn.net/openvpn/ticket/725

Signature · 4 lines
kind regards,

David Sommerseth
OpenVPN Technologies, Inc
#2 lore raw
In reply to [email protected]...

Hi,

Quoted 7 lines · On 02/12/16 10:32, [email protected]... wrote:

Hi!

I would like to know if it's possible to enable fips enabled encryption on my vpn server? Here is a link to fips user guide https://www.openssl.org/docs/fips/UserGuide-2.0.pdf . It looks like I'd have to change source code and compile it myself to make it FIPS compliant. Any help or advice would be very much appreciated.

Without very much effort it is possible to build openvpn with openssl FIPS support on CentOS7:

OpenVPN 2.4_beta2 [git:master/1c587a1112220618+] x86_64-unknown-linux-gnu [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [MH/PKTINFO] [AEAD] built on Dec 1 2016 library versions: OpenSSL 1.0.1e-fips 11 Feb 2013, LZO 2.06

OpenSSL 1.0.1e-fips appears to be the default openssl developer library in CentOS7.

I do not know enough about FIPS certification to advise if *only* this change is sufficient to cover you for real world certification.

Regards

#3 lore raw
Quoted 19 lines · On 02/12/16 13:55, debbie10t wrote:

Hi,

Quoted 7 lines · On 02/12/16 10:32, [email protected]... wrote:

Hi!

I would like to know if it's possible to enable fips enabled encryption on my vpn server? Here is a link to fips user guide https://www.openssl.org/docs/fips/UserGuide-2.0.pdf . It looks like I'd have to change source code and compile it myself to make it FIPS compliant. Any help or advice would be very much appreciated.

Without very much effort it is possible to build openvpn with openssl FIPS support on CentOS7:

OpenVPN 2.4_beta2 [git:master/1c587a1112220618+] x86_64-unknown-linux-gnu [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [MH/PKTINFO] [AEAD] built on Dec 1 2016
library versions: OpenSSL 1.0.1e-fips 11 Feb 2013, LZO 2.06

Quoted 5 lines

OpenSSL 1.0.1e-fips appears to be the default openssl developer library in CentOS7.

I do not know enough about FIPS certification to advise if *only* this change is sufficient to cover you for real world certification.

This is partially right. But the system is at this point not in FIPS mode, so the hardening FIPS provides is still not active. You need to reboot the system into FIPS mode, which then disables several algorithms in OpenSSL which OpenVPN depends on - which makes OpenVPN fail.

For more info:
<https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/html/Security_Guide/chap-Federal_Standards_and_Regulations.html#sect-Federal_Information_Processing_Standard>

Signature · 4 lines
kind regards,

David Sommerseth
OpenVPN Technologies, Inc
#4 lore raw

I think in order to activate FIPS mode in openvpn we need not only to build it against fips capable openssl, but also call FIPS_mode_set() function inside openvpn code. I'm guessing fips mode activation in the kernel in case of RHEL means that all services and applications in the system would operate in fips mode (although I'm not absolutely sure). But what about other distributions like ubuntu? I don't see the way to activate fips mode system wide. I'm saying all this because it seems to me that we need to call fips mode set function inside openvpn code. The user guide(https://www.openssl.org/docs/fips/UserGuide-2.0.pdf) says this: "Somewhere very early in the execution of the application FIPS mode must be enabled. This should be done by invocation of the FIPS_mode_set() function call" (see section 5 if interested). So I don't think simply building openvpn with fips capable openssl would be enough to say openvpn is functioning in fips mode as we need to enable fips mode inside the code. David, I understand that calling fips mode function would break openvpn because it depends on some algorithms not fips approved. When could be expected to see a patch that would allow to enable fips mode in openvpn without breaking it?

02.12.2016, 16:28, "David Sommerseth" <[email protected]...>:

Quoted 50 lines · On 02/12/16 13:55, debbie10t wrote:
Quoted 18 lines

 Hi,

Quoted 6 lines · On 02/12/16 10:32, [email protected]... wrote:

 Hi!

 I would like to know if it's possible to enable fips enabled encryption on my vpn server? Here is a link to fips user guide https://www.openssl.org/docs/fips/UserGuide-2.0.pdf . It looks like I'd have to change source code and compile it myself to make it FIPS compliant. Any help or advice would be very much appreciated.

 Without very much effort it is possible to build openvpn with openssl FIPS support on CentOS7:

 OpenVPN 2.4_beta2 [git:master/1c587a1112220618+] x86_64-unknown-linux-gnu [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [MH/PKTINFO] [AEAD] built on Dec 1 2016
 library versions: OpenSSL 1.0.1e-fips 11 Feb 2013, LZO 2.06

Quoted 5 lines

 OpenSSL 1.0.1e-fips appears to be the default openssl developer library in CentOS7.

 I do not know enough about FIPS certification to advise if *only* this change is sufficient to cover you for real world certification.

This is partially right. But the system is at this point not in FIPS mode, so the hardening FIPS provides is still not active. You need to reboot the system into FIPS mode, which then disables several algorithms in OpenSSL which OpenVPN depends on - which makes OpenVPN fail.

For more info:
<https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/html/Security_Guide/chap-Federal_Standards_and_Regulations.html#sect-Federal_Information_Processing_Standard>

--
kind regards,

David Sommerseth
OpenVPN Technologies, Inc

,

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot
,

_______________________________________________
Openvpn-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-devel

#5 lore raw
In reply to debbie10t

2016-12-02 17:55 GMT+05:00 debbie10t <[email protected]...>:

Quoted 22 lines

Hi,

Quoted 3 lines · On 02/12/16 10:32, [email protected]... wrote:

Hi!

I would like to know if it's possible to enable fips enabled encryption

on my vpn server?

Quoted 1 line

Here is a link to fips user guide https://www.openssl.org/docs/

fips/UserGuide-2.0.pdf .

Quoted 1 line

It looks like I'd have to change source code and compile it myself to

make it FIPS compliant.

Quoted 2 lines

Any help or advice would be very much appreciated.

Without very much effort it is possible to build openvpn with openssl FIPS support on CentOS7:

OpenVPN 2.4_beta2 [git:master/1c587a1112220618+] x86_64-unknown-linux-gnu [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [MH/PKTINFO] [AEAD] built on Dec 1 2016
library versions: OpenSSL 1.0.1e-fips 11 Feb 2013, LZO 2.06

Quoted 6 lines

OpenSSL 1.0.1e-fips appears to be the default openssl developer library in CentOS7.

I do not know enough about FIPS certification to advise if *only* this change is sufficient to cover you for real world certification.

since we build openssl ourselves in travis-ci, should we add "openssl fips" to travis-ci build matrix ?

I guess "just build" is not proper testing.
and, as already said here, at least MD5 will become unavailable in fips mode

Quoted 12 lines

Regards

------------------------------------------------------------
------------------
Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Openvpn-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-devel