使用 bash 中的 openssl 备用配置文件? [英] Using openssl alternate config file from bash?

查看:66
本文介绍了使用 bash 中的 openssl 备用配置文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不想(或不能)修改默认的 .cnf openssl 配置文件.

I would not like (or cannot) modify the default .cnf openssl config file.

如何告诉 openssl 命令行工具在另一个位置使用不同的 .cnf 文件 - 不是默认的?

How do tell the openssl command line tool to use a different .cnf file at another location - not the default?

推荐答案

您可以使用以下操作之一覆盖 openssl 配置:

You can override openssl configuration using one of the actions:

  • 设置 OPENSSL_CONF 环境变量以指向您的自定义配置文件
  • 在处理证书的命令中使用 -config 选项(例如 reqca...)
  • openssl.cnf 中的大部分定义都可以使用命令行选项覆盖.
  • Set OPENSSL_CONF environment variable to point to your custom configuration file
  • Use -config option with the commands handling certificate (e.g. req, ca...)
  • Most of the definition in the openssl.cnf can be overridden using command line option.

你也可以看看man x509v3_config.

这篇关于使用 bash 中的 openssl 备用配置文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆