草庐IT

certificate-authority

全部标签

javadoc "@author"没有显示?

每当我在intelliJ中输入“Printing”并按下CTRLQ时,我只能看到“Summary”而看不到“Bob”。..我做错了什么?packageprinting;/***@authorBob*Summary*/publicclassPrinter{//stuff}***注意:我只是在学习如何使用“javadoc”,所以我希望得到解释。编辑:除非我取出“@author”,否则我什至看不到“摘要” 最佳答案 听起来像是IntelliJ的问题/功能。Eclipse显示整个javadoc,包括@author.其他可能的问题是存在Sum

javax.net.ssl.SSLException : Certificate for <> doesn't match any of the subject alternative names: [] 异常

当我尝试使用Postman访问URL时,它工作正常,通过使用我的个人证书。但是当我使用RestAssured测试用例尝试相同时,它抛出上述异常。配置类publicclassConfiguration{protectedSSLConfigconfig=null;privatestaticfinalLoggerLOG=LoggerFactory.getLogger(Configuration.class);@SuppressWarnings("deprecation")@BeforeClasspublicvoidsetKeystore(){KeyStorekeyStore=null;Key

java - 使用 Java 使用 BouncyCaSTLe 生成 X509Certificate

这就是我现在用来生成数字证书的内容。现在我可以生成一个数字证书,其中的密码对私钥进行保护。publicstaticvoidmain(String[]args)throwsException{Security.addProvider(newBouncyCastleProvider());testKeyStore();}publicstaticvoidtestKeyStore()throwsException{try{StringstoreName="d://suresh_test.cer";java.security.KeyPairGeneratorkeyPairGenerator=Ke

java - SSL 异常 : javax.net.ssl.SSLHandshakeException:收到致命警报:certificate_unknown

我已经创建了SSLClient和SSLServer,还为SSLServer创建了keystore"server.jks",为SSLClient创建了"client.jks"。首先我执行SSLServer.java文件,然后当我执行SSLClient.java文件时。它抛出异常"javax.net.ssl.SSLHandshakeException:Receivedfatalalert:certificate_unknown"。我不知道为什么我得到这个异常(exception)。我跟随http://ruchirawageesha.blogspot.in/2010/07/how-to-cr

java - NetBeans 7.0.1 : Access to Tomcat server has not been authorized

我是初学者,刚开始使用JSP并且卡在了起点。请帮帮我。我已经下载catalina.bat和setclasspath.bat在适当的位置/tomcat/bin/但仍然出现授权错误。我看过类似的帖子并编辑了我的tomcat-users.xml用这条线但仍然无法成功运行它。Seetheserverlogfordetails.atorg.netbeans.modules.j2ee.deployment.devmodules.api.Deployment.deploy(Deployment.java:232)atorg.netbeans.modules.j2ee.ant.Deploy.execu

ssl - Java SSL - InstallCert 识别证书,但仍然出现 "unable to find valid certification path"错误?

我以为我遇到了和其他人一样的问题,我一直在经历无数类似的问题和潜在的解决方案,但没有运气。我使用的信任库是cacerts,位于Java1.6.0JRE的lib/security中(build1.6.0_20-b02...这可能是问题的根源吗?)。我也尝试过jssecacerts。使用InstallCert(根据发布的其他类似问题),我可以看到我的证书实际上已安装且有效(并且我已将其删除、重新导入等以确保我看到正确的数据):javaInstallCertLoadingKeyStorejssecacerts...Openingconnectionto:443...StartingSSLha

java - 如何解决 "The certificate is not valid and cannot be used to verify the identity of this website"错误?

问题是,如何解决“证书无效,不能用于验证此网站的身份”错误?。详情如下:在我将Java更新到8u25(1.8.0_25-b18)之前,我有一个签名的小程序一直运行良好。现在,应用程序显示一条警告消息“你想继续吗?与此网站的连接不受信任”。此消息中也有一条注释,“证书无效,不能用于验证此网站的身份”。小程序加载没有问题。但是当用户尝试使用该应用程序的特定功能时,会显示警告消息。发生这种情况时,我已经检查了java控制台,并且在这些行之后显示了这条警告消息:security:ObtaincertificatecollectioninSSLRootCAcertificatestoresecu

java - Spring Boot2 Oauth2 隐式流程 - http ://localhost:8080/oauth/authorize getting Access Denied

我创建了一个SpringBoot2应用程序,集成了SpringFoxSwagger2.8.0和用于身份验证和授权的隐式Oauth2授权。代码工作正常,但是当我点击授权按钮时,它会重定向到http://localhost:8080/oauth/authorize?response_type=token&client_id=test-app-client-id&redirect_uri=http%3A%2F%2Flocalhost%3A8080%2Fwebjars%2Fspringfox-swagger-ui%2Foauth2-redirect.html&scope=read&state=

java - 无法在 Java : "pathLenConstraint violated - this cert must be the last cert in the certification path" 中对 SSL 站点进行身份验证

我正在尝试使用Java代码从安全(即SSL)网页中读取内容。我正在尝试同时使用URLConnection(java.net)和Apache的HTTPClient。在这两种情况下,当我发出请求时,我都会收到此异常:javax.net.ssl.SSLHandshakeException:sun.security.validator.ValidatorException:PKIXpathvalidationfailed:java.security.cert.CertPathValidatorException:basicconstraintscheckfailed:pathLenConstr

java - JavaDocs 报告生成中发生错误 :Exit code: 1 - javadoc: error - invalid flag: -author

您好,我面临一些maven插件问题,当我尝试部署java-webservices项目时,我的项目没有下载"maven-javadoc-plugin:2.4"插件,我手动安装了“maven-javadoc-plugin2.5”版本jar到我的.m2/repository。我得到了"AnerrorhasoccurredinJavaDocsreportgeneration:Exitcode:1-javadoc:error-invalidflag:-author".谁能帮我解决这个错误,子pomorg.apache.maven.pluginsmaven-javadoc-pluginjavado