Question and Answer (Personal Use)

简介:
Topic: EJBCA API
 
1. how to obtain private key using EJBCA API
 
See se.anatom.ejbca.keyrecovery.IKeyRecoverySessinBeanRemote.  
Mainly it's the methods addKeyRecoveryData and keyrecover that should be used
 
2.
Q:
I would to ask about ejbca Approval. I have notice that the ejbca webservices don't include Approval. Hence I would to try and do the Approval. I need some information on the Apporval part. 
1. Which Class is Responsible to list all the enduser to be approve? 
2. Which Table in ejbca Table responsible on saving the user waiting to be approve? 
3. Can this be done? 
 
A:
I think that the webservice calls do handle approvals. I.e. you can send a request with WS-api and the request requires approval to be executed.  
But perhaps you mean that it should be possible to approve requests using new ws-api calls?
 
3. How to interact with EJBCA
Hi, EJBCA has an extensive API using session beans (J2EE). The session bean API is normally not exposed to clients but firewalled and confined to the application server. This is because the API can be used to create new users etc, things normally not available to anyone :-) 
 
It is quite easy to use http from the java client do request certificates and to retrieve other users certificates. There is an old sample in src/java/se/anatom/ejbca/samples/HttpGetCert.java for requesting a cert programatically. The sample is old as I said, so it possibly needs some modification. 
Retrieveing another users certificate can be done by issuing the same GET request as used on the public web pages. 
 
We have a long standing feature request for a public SOAP API.  
http://jira.primekey.se/browse/ECA-135 
but there is no ETA on that. 
 
4.
 
Topic: integrate
 
1.How to integrate EJBCA to Applications fo
The most adapted is to separate the functions. User a server Tomcat for the Forum which appeals for request certificate directly to EJBCA (other server with JBOSS). To do it, create a Web page into your Forom to make a request (authenticated or not) towards democertreq ( see \src\ejbca\src\java\se\anatom\ejbca\apply ) by a method POST. 
 
For the customer authentification, EJBCA does not realize this function. You have to develop you even this part or to use application such as http: //  http://www.josso.org/.  
 
1 - To use EJBCA that you have to use at same time JBOSS and the Tomcat. JBOSS manages the application of PKI.  
Tomcat (catalina) manages the Web part of the PKI. You cannot use exclusively Tomcat with EJBCA. 
 
By default, EJBCA uses JKS for Tomcat, but it is possible to use file PKCS12 or PFX. 
EJBCA uses the file JKS in Tomcat for the SSL part. It has for function to be the certificate server.  
The specific management of the rights is managed by EJBCA (development in Java) and this has nothing  
to do with Tomcat. 
 
 
2- The keystore in JKS : keystoreFile=${jboss.server.home.dir}/conf/keystore/keystore.jks is installed by default  
during the installation process of EJBCA. It's the certificate server allowing the negotiation SSL between the customer(browser)  
and the server (tomcat). 
 
3 - Keystore JKS and P12 or PFX have nothing to do between them.  
P12, PFX, PVK, SPC, JKS, etc. They are differents formats for stocking certificates  
,privates keys, AC certificates. 
 
Otherwise, EJBCA PKI allows to make certificates server and customer in JKS or P12(PFX) format.  
 
I advise you strongly to study the bases of the PKI, the formats of stocking of the cryptographic data. 
Etc. You will find a lot of information on Google. 
 
Note : The use of EJBCA requires a culture in PKI, and external components (Mysql, LDAP, Jboss, etc) 
 
If you wish to make of the management of rights from certificates, Ejbca is not made for it. EJBCA  
is a PKI. She manages the cycle of life of certificates (generate,issue,revocation) not acces right to  
external application.  

    本文转自danni505 51CTO博客,原文链接:http://blog.51cto.com/danni505/154404,如需转载请自行联系原作者


相关文章
|
机器学习/深度学习 编解码 人工智能
Reading Notes: Human-Computer Interaction System: A Survey of Talking-Head Generation
由于人工智能的快速发展,虚拟人被广泛应用于各种行业,包括个人辅助、智能客户服务和在线教育。拟人化的数字人可以快速与人接触,并在人机交互中增强用户体验。因此,我们设计了人机交互系统框架,包括语音识别、文本到语音、对话系统和虚拟人生成。接下来,我们通过虚拟人深度生成框架对Talking-Head Generation视频生成模型进行了分类。同时,我们系统地回顾了过去五年来在有声头部视频生成方面的技术进步和趋势,强调了关键工作并总结了数据集。 对于有关于Talking-Head Generation的方法,这是一篇比较好的综述,我想着整理一下里面比较重要的部分,大概了解近几年对虚拟人工作的一些发展和
|
存储 自然语言处理 数据可视化
【提示学习】AUTOPROMPT: Eliciting Knowledge from Language Models with Automatically Generated Prompts
Prompt任务需要构建合适的Pattern,但是编写合适的Pattern需要手动工作和人为猜测,有很大的不确定性。为了解决这个问题,提出AUTOPROMPT模型,基于梯度下降搜索来创建Pattern。
196 0
|
数据挖掘
【提示学习】Prompt Tuning for Multi-Label Text Classification: How to Link Exercises to Knowledge Concept
文章这里使用的是BCEWithLogitsLoss,它适用于多标签分类。即:把[MASK]位置预测到的词表的值进行sigmoid,取指定阈值以上的标签,然后算损失。
109 0
|
自然语言处理
【论文速递】ACL 2022 - Prompt for Extraction? PAIE: Prompting Argument Interaction for Event Argument Extr
在本文中,我们提出了一个既有效又高效的模型PAIE,用于句子级和文档级的事件论元抽取(EAE),即使在缺乏训练数据的情况下也能很好地泛化。一方面,PAIE利用抽取目标的提示调优,以充分利用预训练语言模型(PLMs)的优势。
111 0
|
机器学习/深度学习 自然语言处理 算法
Retrieval-Augmented Generative Question Answering for Event Argument Extraction论元解读
长期以来,事件论元抽取一直被研究为基于抽取的方法的序列预测问题,孤立地处理每个论元。尽管最近的工作提出了基于生成的方法来捕获交叉论元依赖性,但它们需要生成和后处理复杂的目标序列(模板)。
198 0
|
关系型数据库 PHP 数据库

热门文章

最新文章