简体   繁体   English

产生凭证签署要求的问题

[英]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.

相关问题 生成证书签名请求,对其进行签名和验证有哪些选项? - What options are there for generating certificate sign request, signing it and verifying it? Java代码签名证书问题 - Java code signing certificate issue Android 上的读/写证书签名请求 (spongycastle) - Read/Write Certificate Signing Request on Android (spongycastle) 使用 java 程序为 ssl 生成证书签名请求 - Generate a Certificate Signing Request for ssl using java program BouncyCastle:从证书签名请求中提取公钥信息 - BouncyCastle: Extract public key informationfrom Certificate Signing Request 如何使用 Android 上的密钥库创建证书签名请求? - How do you create a Certificate Signing Request using the KeyStore on Android? 使用 AndroidKeyStoreProvider 生成证书签名请求的最佳方法是什么? - What is the best way to generate Certificate Signing Request using AndroidKeyStoreProvider? 使用Java或BouncyCastle解码/读取CSR(证书签名请求) - Decode/Read a CSR (Certificate Signing Request) Using Java or BouncyCastle 代码签名证书Java - Code Signing Certificate Java Apache jMeter 没有为 http 请求记录生成 ApacheJMeterTemporaryRootCA.crt 证书 - Apache jMeter is not generating ApacheJMeterTemporaryRootCA.crt certificate for http request recording
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM