public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: "Pinzone, Gerard" <GPinzone@aaccorp.com>
To: "cygwin@cygwin.com" <cygwin@cygwin.com>
Subject: Re: OpenSSH FIPS 140-2
Date: Tue, 25 Jun 2019 13:45:00 -0000	[thread overview]
Message-ID: <ef3aa80d58bf4c49b270264b494c77c2@aaccorp.com> (raw)

I was able to build OpenSSL with FIPS and OpenSSH using those OpenSSL libraries from scratch and install on 32-bit Cygwin.

I'm documenting what I did here and would like some feedback. 

Install Cygwin 32-bit with the following extras:
-----------------------------------------------

Rollback OpenSSL to latest 1.0.2
zlib (all)
Perl (all)
zip
unzip
gcc-g++
make

Extract all files:
-----------------

tar -zxvf openssl-fips-2.0.16.tar.gz
tar -zxvf openssl-1.0.2s.tar.gz
tar -zxvf openssh-8.0p1.tar.gz

Build OpenSSL:
-------------

cd openssl-fips-2.0.16

./config
make
make install

cd ../openssl-1.0.2s

./config fips --with-fipsdir=/usr/local/ssl/fips-2.0
make depend
make
make install

cd apps

Verify build:
------------

./openssl version -a

Install OpenSSL:
---------------

mv /usr/bin/openssl.exe /usr/bin/openssl.exe.old
cp openssl.exe /usr/bin/openssl.exe

Build OpenSSH:
-------------

cd ~/openssh-8.0p1

./configure --with-ssl-dir=/usr/local/ssl --with-ssl-engine
make
make install

Install OpenSSH:
---------------

cp scp.exe /usr/bin/.
cp sftp.exe /usr/bin/.
cp sftp-server.exe /usr/sbin/.
cp ssh.exe /usr/bin/.
cp ssh-add.exe /usr/bin/.
cp ssh-agent.exe /usr/bin/.
cp sshd.exe /usr/sbin/.
cp ssh-keygen.exe /usr/bin/.
cp ssh-keyscan.exe /usr/bin/.
cp ssh-keysign.exe /usr/sbin/.
cp ssh-pkcs11-helper.exe /usr/sbin/.


Verify ssh:
----------

ssh -vvv localhost

Configure sshd:
--------------

ssh-host-config -y
cygrunsrv -S cygsshd

Generate keys:
-------------

ssh-keygen

Test sshd:
---------

ssh localhost

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

             reply	other threads:[~2019-06-25 13:45 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-06-25 13:45 Pinzone, Gerard [this message]
  -- strict thread matches above, loose matches on Subject: below --
2019-06-24 18:50 Pinzone, Gerard
2019-06-25  3:06 ` Brian Inglis

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ef3aa80d58bf4c49b270264b494c77c2@aaccorp.com \
    --to=gpinzone@aaccorp.com \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).