Subject does not start with '/'

本文解决在Windows平台使用Git执行bash脚本生成SSL证书时遇到的Subjectdoesnotstartwith'/'错误。错误源于GitforWindows中MinGW/MSYS模块的路径转换机制,通过调整-subj参数中斜杠的格式可以成功生成证书。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

在Windows平台使用Git执行bash脚本生成SSL证书时,以下命令会产生错误Subject does not start with '/'

openssl req -new -x509 -days 365 -key ca_private.key -out ca_cert.crt -subj "/C=CN/ST=BJ/L=BJ/O=abc/OU=abc/CN=abc/emailAddress=abc@abc.com"

该错误是由Git for WindowsMinGW/MSYS模块的路径转换机制引起的

解决方案:-subj参数中第一个“/”改为“//”,其余“/”改为“\”,如下:

-subj "//C=CN\ST=BJ\L=BJ\O=abc\OU=abc\CN=abc\emailAddress=abc@abc.com"

参考:https://stackoverflow.com/questions/31506158/running-openssl-from-a-bash-script-on-windows-subject-does-not-start-with

 

查询hbase org.apache.hadoop.hbase.client.RetriesExhaustedException: Failed after attempts=16, exceptions: Mon Aug 04 14:28:02 CST 2025, RpcRetryingCaller{globalStartTime=1754288882303, pause=100, maxAttempts=16}, java.io.FileNotFoundException: java.io.FileNotFoundException: File does not exist: /apps/hbase/data/data/default/hbase_adm__rt_common_feature_di/4e55d51705a7241585233ed6ad626303/f/eb9d73c8dc7b48aab43b11d2d8e9c567 at org.apache.hadoop.hdfs.server.namenode.INodeFile.valueOf(INodeFile.java:86) at org.apache.hadoop.hdfs.server.namenode.INodeFile.valueOf(INodeFile.java:76) at org.apache.hadoop.hdfs.server.namenode.FSDirStatAndListingOp.getBlockLocations(FSDirStatAndListingOp.java:158) at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.getBlockLocations(FSNamesystem.java:1931) at org.apache.hadoop.hdfs.server.namenode.NameNodeRpcServer.getBlockLocations(NameNodeRpcServer.java:738) at org.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolServerSideTranslatorPB.getBlockLocations(ClientNamenodeProtocolServerSideTranslatorPB.java:426) at org.apache.hadoop.hdfs.protocol.proto.ClientNamenodeProtocolProtos$ClientNamenodeProtocol$2.callBlockingMethod(ClientNamenodeProtocolProtos.java) at org.apache.hadoop.ipc.ProtobufRpcEngine$Server$ProtoBufRpcInvoker.call(ProtobufRpcEngine.java:524) at org.apache.hadoop.ipc.RPC$Server.call(RPC.java:1025) at org.apache.hadoop.ipc.Server$RpcCall.run(Server.java:876) at org.apache.hadoop.ipc.Server$RpcCall.run(Server.java:822) at java.security.AccessController.doPrivileged(Native Method) at javax.security.auth.Subject.doAs(Subject.java:422) at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1730) at org.apache.hadoop.ipc.Server$Handler.run(Server.java:2682)
最新发布
08-05
# This software is subject to the license described in the # LICENSE_A+SS.txt file included with this software distribution. # You may not use this file except in compliance with this license. # # Copyright (c) Garmin Canada Inc. 2018 # All rights reserved. """Defines and runs the HRM has no Sports Mode test. This script must be run from within SimulANT+'s script runner on a simulated Heart Rate Sensor Device. """ import clr import System clr.AddReference('ANT+ProfileLib') clr.AddReference('PresentationFramework') from AntPlus.Profiles.HeartRate import HeartRateSensor from certification_prompts import Prompt, MessageBox, ButtonMessage,\ PromptResult from test_base import DisplayTestBase from timer import CertTimer class SD_HRM_002 (DisplayTestBase): """HRM has no Sports Mode Test. This test verifies that the UUT does not attempt to send mode settings pages if the sensor does not support sports mode. Procedure: 1. Turn on the simulated device. 2. Configure it to not support sports mode. 3. Turn on the UUT in swim mode. 4. Does the UUT not attempt to send mode settings page? """ def __init__(self, simulator, endScript): """Test class constructor. Args: simulator: The simulated device exposed by SimulANT+. endScript (function pointer): The SimulANT+ exposed method that triggers the "Stop" Button in SimulANT+. """ self._timer = CertTimer() self._prompt = Prompt() DisplayTestBase.__init__(self, "SD_HRM_002", simulator, endScript, self._found) def start_test(self): """The call to start the test.""" self._timer.Interval = 15000 self.simulator.Capabilities.RunningSupported = False self.simulator.Capabilities.CyclingSupported = False self.simulator.Capabilities.SwimmingSupported = False DisplayTestBase.start_test(self, "HRM has no Sports Mode T
03-12
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值