Skip to content

The EJBCA REST Integration feature enables you to easily create a Securosys Crypto Token, facilitating connection and support for the Securosys Cloud HSM. This integration allows you to perform operations such as generating key pairs, deleting keys, testing connections, creating CAs, and much more.

License

Notifications You must be signed in to change notification settings

securosys-com/ejbca-rest-integration

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

EJBCA PKI Discuss

EJBCA covers all your needs – from certificate management, registration and enrollment to certificate validation.

Welcome to EJBCA – the Open Source Certificate Authority (software). EJBCA is one of the longest running CA software projects, providing time-proven robustness, reliability and flexibitlity. EJBCA is platform independent and can easily be scaled out to match the needs of your PKI requirements, whether you’re setting up a national eID, securing your industrial IoT platform or managing your own internal PKI for Enterprise or DevOps.

EJBCA is developed in Java and runs on a JVM such as OpenJDK, available on most platforms such as Linux and Windows.

There are two versions of EJBCA:

  • EJBCA Community (EJBCA CE) - free and open source, OSI Certified Open Source Software
  • EJBCA Enterprise (EJBCA EE) - commercial and Common Criteria certified

OSI Certified is a certification mark of the Open Source Initiative.

Community Support

In our Community we welcome contributions. The Community software is open source and community supported, there is no support SLA, but a helpful best-effort Community.

License

EJBCA Community is licensed under the LGPL license, please see LICENSE.

EJBCA Rest Integration

This chapter will show you how to easily add Securosys Crypto Token support and HSM integration to your ejbca project.

Get started

To get started with EJBCA Community, clone ejbca-ce and install it, see EJBCA Installation.

You can also easily run EJBCA as a container from Dockerhub.

Adding the Securosys Crypto Token Extension

All documentation on customizing ejbca configuration and adding own modifications can be found here.

In our case,in basic way, the following steps should be followed:

  1. In the ejbca-custom/conf folder there are configuration files that you need to modify to your needs, such as database.properties etc. If you want to add the Securosys Crypto Token extension, make sure that the securosys.cryptotoken.enabled=true option is enabled in the web.properties file.

  2. Insert the file ejbca-custom next into your EJBCA installation folder: /opt/ejbca-custom.

  3. When you run ant build command inside an EJBCA installation folder, it will copy everything from ejbca-custom, replacing local files in the same location.

  4. In the same directory run ant deployear.

  5. Start ejbca.

Create Securosys Crypto Token

In the EJBCA menu, under CA Functions, click Crypto Tokens to open the Manage Crypto Tokens page. Then click Create new.

Enter a Name and then select the type Securosys Primus HSM.

There are two ways for creating a Securosys Crypto Token connection with HSM (Authentication Type): Bearer Token or mTLS certificate.

  1. Bearer Token:
  • In the Securosys REST API URL field, enter the endpoint to the TSB you want to connect to,
  • In the Securosys REST API Bearer Token field, enter your JWT bearer token.
  1. mTLS certificate:
  • In the Securosys REST API URL field, enter the endpoint to the TSB you want to connect to,
  • Enter mTLS certificate and mTLS key,
  • Enter the appropriate API Keys to pass the authentication process for the individual operations that will be used on the crypto token after its creation. The Management Key and Operation Key are mandatory, while the Service Key is optional and will only be used to check the TSB version so that the appropriate operations are compatible with it. If you are using the latest available version of TSB, you can skip this key.

After clicking Save button, the Securosys Crypto Token will be created, which works on the same principles as other tokens.

About

The EJBCA REST Integration feature enables you to easily create a Securosys Crypto Token, facilitating connection and support for the Securosys Cloud HSM. This integration allows you to perform operations such as generating key pairs, deleting keys, testing connections, creating CAs, and much more.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published