LibreSSLをFreeBSDでビルドする方法

提供: セキュリティ
移動: 案内検索
スポンサーリンク

LibreSSL を FreeBSD でビルドする方法を説明します。

読み方

LibreSSL
りぶれ えすえすえる

概要

OpenSSLからfork(派生)したLibreSSLFreeBSDでビルドしました。

ビルド

AES-NI がサポートしてないなら、 no-asm を指定します。

wget http://ftp.openbsd.org/pub/OpenBSD/LibreSSL/libressl-2.3.1.tar.gz
tar zxfp libressl-2.3.1
cd libressl-2.3.1
./config zlib no-asm

以下のエラーが出たら、 config に no-asm を指定します。

% make
Making all in crypto
  CCAS     aes/aesni-elf-x86_64.lo
aes/aesni-elf-x86_64.s: Assembler messages:
aes/aesni-elf-x86_64.s:13: Error: no such instruction: `aesenc %xmm1,%xmm2'
aes/aesni-elf-x86_64.s:18: Error: no such instruction: `aesenclast %xmm1,%xmm2'
aes/aesni-elf-x86_64.s:34: Error: no such instruction: `aesdec %xmm1,%xmm2'
aes/aesni-elf-x86_64.s:39: Error: no such instruction: `aesdeclast %xmm1,%xmm2'
aes/aesni-elf-x86_64.s:56: Error: no such instruction: `aesenc %xmm1,%xmm2'
aes/aesni-elf-x86_64.s:57: Error: no such instruction: `aesenc %xmm1,%xmm3'
aes/aesni-elf-x86_64.s:59: Error: no such instruction: `aesenc %xmm1,%xmm4'

実行例

OpenSSLと違い、ディレクトリ構造が1階層増えていますので、注意してください。[[[OpenSSL]]の感覚でいると、opensslコマンドが見つからない!ってなります。

% env OPENSSL_CONF=$PWD/apps/openssl/openssl.cnf apps/openssl/openssl version

関連項目




スポンサーリンク