From: "Jim Carroll" References: <00bb01d363a1$2428e260$6c7aa720$@carroll.com> <20171122164212.GD631@...1296...> In-Reply-To: <20171122164212.GD631@...1296...> Date: Wed, 22 Nov 2017 13:53:50 -0500 Message-ID: <016a01d363c3$3cc3bdf0$b64b39d0$@carroll.com> Content-Language: en-us Subject: Re: [Openvpn-devel] OpenVPN + OpenSSL FIPS Object Module v2.0 causes OpenVPN to SIGSEGV List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit To: 'Gert Doering' Cc: openvpn-devel@lists.sourceforge.net Gert, You're tip lead me to the "secret" switch that allows MD5 in FIPS mode. And your completely right -- MD5 for non-HASH is a legal use in FIPS mode. I can't thank you enough. Question -- We'd like to submit a patch. Is the correct procedure still to submit patches via email as described https://community.openvpn.net/openvpn/wiki/DeveloperDocumentation#Dailydevel opment. Or is appropriate for us to just fork on github and push patches there? Conceptually, I believe supporting FIPS in OpenVPN will require four broad changes: 1) A change to configure.ac to help build process find OpenSSL FIPS Object Module 2) A new option to OpenVPN, eg: --fips-mode 3) Code change to enable FIPS & Allow MD5 for PRF 4) Build process documentation to build, eg: where to get OpenSSL pieces and how to build Do we need to run this by anyone, or do we just start patching? > -----Original Message----- > From: Gert Doering [mailto:gert@...1296...] > Sent: Wednesday, November 22, 2017 11:42 AM > To: Jim Carroll > Cc: openvpn-devel@lists.sourceforge.net > Subject: Re: [Openvpn-devel] OpenVPN + OpenSSL FIPS Object Module v2.0 > causes OpenVPN to SIGSEGV > > Hi, > > On Wed, Nov 22, 2017 at 09:49:47AM -0500, Jim Carroll wrote: > > I'm not sure how to resolve this issue. tls1_PRF() is building data > channel > > keys exchanged between the client and server. It would appear to me > that MD5 > > is "baked into" the OpenVPN key negotiation in away that cannot be > simply > > omitted/skip/replaced, without a coordinated code change to all > downstream > > client code as well (including IOS). Is that correct? > > This is correct. MD5 for the PRF is essential for the wire protocol, > and changing this will be incompatible with all unchanged clients. > > OTOH, MD5 is perfectly fine in FIPS code *iff* it's not used as a hash > but for other purposes. I seem to remember that there is a magic call > you need to do to tell the FIPS side of things "hey, this invocation of > MD5 is good". > > We had the discussion on the openvpn-devel list some time ago (two > years > maybe?) so google might find something more authoritative here. > > gert > -- > now what should I write here... > > Gert Doering - Munich, Germany > gert@...1296... begin 666 smime.p7s M,( &"2J&2(;W#0$'`J" ,( "`0$Q"S )!@4K#@,"&@4`,( &"2J&2(;W#0$' M`0``H((.$3""!#8P@@,>H ,"`0("`0$P#08)*H9(AO<-`0$%!0`P;S$+, D& M`U4$!A,"4T4Q%# 2!@-5! H3"T%D9%1R=7-T($%",28P) 8#500+$QU!9&14 M'1E%PTP,# U,S Q,#0X,SA:%PTR,# U,S Q,#0X M,SA:,&\Q"S )!@-5! 83`E-%,10P$@8#500*$PM!9&14FQ$SEZ0I M3'V3G[U*O)/M`QKCC\_E;5!:UI=,K(D%3IQE\/>)V:0#P.K&&J7A2/GH>A:E#&`JCIJ&DF&)"K3+!/(ZLZ3X38W\Z?X6EON]="UVM$Y,>M[FU! M7W):<0@...2325...%F@...1652...#?W`"\-PI)RVM X DRU0:, L& M`U4=#P0$`P(!!C /!@-5'1,!`?\$!3 #`0'_,(&9!@-5'2,$@9$P@...2326... %*V] MF'HTM";W^L0F5.\#O> DRU0:H7.D<3!O,0LP"08#500&$P)313$4,!(&`U4$ M"A,+061D5')U8'9 M'EL4!R,V98^PV'>[K$%L1V"#4;#Y,CWG_/8F$\> %J6_6OR'SWAYB2&:XDP' M"H8UO/+>4<32EK?L,`E$4+8Z]%N#!WT9UYR2M[/1"M(63:[H<4KPC:^$PWFO6-^>7NG"0U JVK=CXK#]O:, M&D(%4=1%]9^G8B%H%2!#/)GG?+TDV*F1%W.(/U8;,3@...2328...'$/FLW(#IZ.+AOA MC)B#RQ\Q\41,Q@...2329...@#\?XO1> :R[IS$P.6IIY#R *+M6>8R8>59*4V((7 M6GO0O,>/3H8$,(($KS""`Y>@`P(!`@(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