From: Nauman Thanvi Date: 2012-04-26T11:35:12+09:00 Subject: Re: Why openssl on windows produces error but not on centos to read pkcs12 Bartosz Dziewoński wrote in post #1058033: > W dniu 23 kwietnia 2012 19:11 użytkownik Brian Candler > napisał: >> The documentation doesn't make it clear whether IO.read() opens in text >> or binary mode, but it's possible that it defaults to text. > > File.read() does CRLF conversion. > > File.binread() doesn't. (It was added in 1.9.3 I think.) > > -- Matma Rex Thanks Guys, that was the problem, I did already figure it out yesterday after spending lot of time, wish had seen forum :).. So this works, File.read(ARGV[0], "rb") Thanks all for replies, Nauman -- Posted via http://www.ruby-forum.com/.