[英]Issue generating a certificate signing request
Hi I am trying to create a certificate request for HTTPS for a JAVA app. 嗨,我正在尝试为JAVA应用程序创建HTTPS证书请求。 I have successfully created the tomcat.keystore and I am now trying to create certificate signing request but I get the below error.
我已经成功创建了tomcat.keystore,现在尝试创建证书签名请求,但出现以下错误。
keytool error: java.io.FileNotFoundException: ôC:\\cm_certreq.csrö (The filename, directory name, or volume label syntax is incorrect)
keytool错误:java.io.FileNotFoundException:ôC:\\cm_certreq.csrö(文件名,目录名或卷标签语法不正确)
I am running the following command as an admin: 我正在以管理员身份运行以下命令:
keytool -certreq -keyalg “RSA” -alias cm -file “C:\\Temp\\cm_certreq.csr” -keystore "C:\\Users\\Myaccount\\Appdata\\Roaming\\Conf\\tomcat.keystore"
keytool -certreq -keyalg“ RSA”-别名cm-文件“ C:\\ Temp \\ cm_certreq.csr” -keystore“ C:\\ Users \\ Myaccount \\ Appdata \\ Roaming \\ Conf \\ tomcat.keystore”
I would guess it's your quotes that is of some kind of wierd format by the look of it. 从外观上看,我猜这是您的报价格式有些奇怪。 Might be due to some encoding-issues in your IDE/tooling?
可能是由于您的IDE /工具中的某些编码问题引起的吗?
Try the following instead and it should work: 请尝试以下方法,它应该可以工作:
keytool -certreq -keyalg "RSA" -alias cm -file "C:\Temp\cm_certreq.csr" -keystore "C:\Users\Myaccount\Appdata\Roaming\Conf\tomcat.keystore"
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.