我似乎无法让Maven在多模块项目中找到兄弟模块.
我已经mvn clean install在所有模块中运行了.
这是设置:
Product
+-- MagniCompCommon
+-- Model
Run Code Online (Sandbox Code Playgroud)
该Model项目具有MagniCompCommon依赖性.当我跑mvn clean compile进来时Model,我得到:
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Model 1.0
[INFO] ------------------------------------------------------------------------
[WARNING] The POM for com.magnicomp:MagniCompCommon:jar:1.0 is missing, no dependency information available
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.585 s
[INFO] Finished at: 2015-10-14T10:09:04-07:00
[INFO] Final Memory: 5M/15M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project Model: Could not resolve …Run Code Online (Sandbox Code Playgroud) 如何确定Java中X509公钥的长度(以位为单位)?
我想在运行"openssl x509 -in cert.crt -noout -text"时获得与"Public-Key"相同的值.例如:
Certificate:
Data:
Version: 3 (0x2)
Serial Number:
17:00:00:01:a2:41:4b:56:3e:99:ba:92:b5:00:02:00:00:01:a2
Signature Algorithm: sha256WithRSAEncryption
Issuer: DC=com, DC=magnicomp, CN=MagniComp Issuing CA
Validity
Not Before: Sep 14 17:23:18 2015 GMT
Not After : Sep 13 17:23:18 2016 GMT
Subject: CN=dim.magnicomp.com
Subject Public Key Info:
Public Key Algorithm: rsaEncryption
Public-Key: (2048 bit)
Run Code Online (Sandbox Code Playgroud)
我有一个X509Certificate对象,我玩过通过返回的PublicKey值,getPublicKey()但我似乎无法弄清楚如何确定密钥长度.
我有一个Android应用程序,它扫描设备上安装的所有应用程序,然后将其报告给服务器(它是MDM代理).有关如何获得应用类别的任何建议?每个人都有不同的类别列表,但基本上类似于游戏,娱乐,工具/实用程序等.
据我所知,与设备本身存储的类别无关.我正在考虑使用Android市场API来搜索市场中的应用程序并使用搜索返回的Category值.不确定这会找到一场比赛有多成功.有关如何最好地做到这一点的任何建议?
有关不同方法的任何建议吗?
提前致谢.麦克风
我目前正在使用充气城堡来创建一个PKCS10请求,其中包含一个主题:
X500Principal subject = new X500Principal("CN=foo.bar.com");
PKCS10CertificationRequestBuilder builder = new JcaPKCS10CertificationRequestBuilder(
subject, publicKey);
Run Code Online (Sandbox Code Playgroud)
我现在需要为PKCS10请求添加主题替代.我一直无法弄清楚如何做到这一点.有什么建议?
解:
基于第二个答案中提供的重要信息,我能够弄清楚这一点.在下面的工作代码中,XName是一个包含主题名称和名称类型(DNS,RFC822等)的简单类.
String signerAlgo = "SHA256withRSA";
ContentSigner signGen = new JcaContentSignerBuilder(signerAlgo).build(privateKey);
X500Principal subject = new X500Principal(csr.getSubjectAsX500NameString());
PKCS10CertificationRequestBuilder builder =
new JcaPKCS10CertificationRequestBuilder(subject, publicKey);
/*
* Add SubjectAlternativeNames (SANs)
*/
if (csr.getSubjectAlternatives() != null && csr.getSubjectAlternatives().size() > 0) {
List<GeneralName> namesList = new ArrayList<>();
for (XName subjectAlt : csr.getSubjectAlternatives()) {
log.debug(m, d+2, "Adding SubjectAltName: %s", subjectAlt);
namesList.add(GeneralNameTool.toGeneralName(subjectAlt));
}
/*
* Use ExtensionsGenerator to add individual extensions.
*/
ExtensionsGenerator …Run Code Online (Sandbox Code Playgroud) 我有一个 Jenkins 管道,所有阶段均已完成并报告为“成功”,但整体构建被标记为“失败”。每次运行构建时都会发生这种情况。构建从头到尾运行,没有任何“从上一个阶段继续”。jenkins版本和插件全部更新到最新。
如果我查看每个阶段,它会在悬停上方显示“成功”(参见屏幕截图)。
我在这里缺少什么?
管道日志文件的结尾:
[Pipeline] }
[Pipeline] // withEnv
Post stage
[Pipeline] junit
Recording test results
[Pipeline] }
[Pipeline] // withEnv
[Pipeline] }
[Pipeline] // node
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
[Pipeline] // parallel
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Declarative: Post Actions)
[Pipeline] mail
[Pipeline] }
[Pipeline] // stage
[Pipeline] End of Pipeline
Finished: FAILURE
Run Code Online (Sandbox Code Playgroud)
编辑2:添加帖子部分
这是管道语句的结尾:
post {
failure {
mail to: "$MAIL_NOTIFY",
subject: "Failed Pipeline: ${currentBuild.fullDisplayName}",
body: "Something …Run Code Online (Sandbox Code Playgroud) I've looked through similar questions on this but nothing seems to match what I'm doing or the suggested fixes work.
I've got a Jetty 9.4.0 server configured from Java (JDK 1.8.0_101) which is not accepting SSL connections from Chrome or from my own Java client. Connecting from openssl s_client works.
The reported error on the Jetty side is "javax.net.ssl.SSLHandshakeException: no cipher suites in common". Chrome reports "The client and server don't support a common SSL protocol version or cipher suite." …
java ×4
android ×1
bouncycastle ×1
google-play ×1
https ×1
jenkins ×1
jetty ×1
maven ×1
multi-module ×1
ssl ×1
x509 ×1