【问题标题】:Issue generating a certificate signing request生成证书签名请求的问题
【发布时间】:2017-07-13 23:51:34
【问题描述】:

您好,我正在尝试为 JAVA 应用程序创建 HTTPS 证书请求。我已经成功创建了 tomcat.keystore,现在我正在尝试创建证书签名请求,但出现以下错误。

keytool 错误:java.io.FileNotFoundException:ôC:\cm_certreq.csrö( 文件名、目录名或卷标语法不正确)

我以管理员身份运行以下命令:

keytool -certreq -keyalg “RSA” -alias cm -file “C:\Temp\cm_certreq.csr”-keystore "C:\Users\Myaccount\Appdata\Roaming\Conf\tomcat.keystore"

【问题讨论】:

    标签: java windows certificate windows-server-2012


    【解决方案1】:

    我猜你的引语从外观上看是某种奇怪的格式。可能是由于您的 IDE/工具中的一些编码问题?

    尝试以下方法,它应该可以工作:

    keytool -certreq -keyalg "RSA" -alias cm -file "C:\Temp\cm_certreq.csr" -keystore "C:\Users\Myaccount\Appdata\Roaming\Conf\tomcat.keystore"
    

    【讨论】:

      猜你喜欢
      • 2020-01-17
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-06-01
      • 1970-01-01
      • 1970-01-01
      • 2012-03-27
      • 2022-08-14
      相关资源
      最近更新 更多