选择您的 Cookie 首选项

我们使用必要 Cookie 和类似工具提供我们的网站和服务。我们使用性能 Cookie 收集匿名统计数据,以便我们可以了解客户如何使用我们的网站并进行改进。必要 Cookie 无法停用,但您可以单击“自定义”或“拒绝”来拒绝性能 Cookie。

如果您同意,AWS 和经批准的第三方还将使用 Cookie 提供有用的网站功能、记住您的首选项并显示相关内容,包括相关广告。要接受或拒绝所有非必要 Cookie,请单击“接受”或“拒绝”。要做出更详细的选择,请单击“自定义”。

Enable FIPS Mode on AL2

聚焦模式
Enable FIPS Mode on AL2 - Amazon Linux 2
此页面尚未翻译为您的语言。 请求翻译

This section explains how to enable Federal Information Processing Standards (FIPS) on AL2. For more information about FIPS, see:

Prerequisites
  • An existing AL2 Amazon EC2 instance with access to the internet to download required packages. For more information about launching an AL2 Amazon EC2 instance, see AL2 on Amazon EC2.

  • You must connect to your Amazon EC2 instance using SSH or AWS Systems Manager. .

Important

ED25519 SSH user keys aren't supported in FIPS mode. If you launched your Amazon EC2 instance using an ED25519 SSH key pair, you must generate new keys using another algorithm (such as RSA) or you may lose access to your instance after enabling FIPS mode. For more information see Create key pairs in the Amazon EC2 User Guide.

Enable FIPS Mode
  1. Connect to your AL2 instance using SSH or AWS Systems Manager.

  2. Ensure the system is up to date. For more information, see Package repository.

  3. Install and enable the dracut-fips module by running the following commmands.

    sudo yum -y install dracut-fips sudo dracut -f
  4. Enable FIPS mode on the Linux kernel command-line using the following command. This will enable FIPS mode system-wide for the modules listed in the AL2 FAQ

    sudo /sbin/grubby --update-kernel=ALL --args="fips=1"
  5. Reboot your AL2 instance.

    sudo reboot
  6. To verify that FIPS mode is enabled, reconnect to your instance and run the following command.

    sysctl crypto.fips_enabled

    You should see the following output:

    crypto.fips_enabled = 1

    You can also verify that OpenSSH is in FIPS mode by running the following command:

    ssh localhost 2>&1 | grep FIPS

    You should see the following output:

    FIPS mode initialized
隐私网站条款Cookie 首选项
© 2025, Amazon Web Services, Inc. 或其附属公司。保留所有权利。