Creating or Importing Certificates

Follow

Generate Key Certificate

This will generate a self-signed certificate (with a Private/Public Keypair).  The private key will be stored in the key store, and is not accessible.

3 properties must be provided to generate a new certificate:

  • Alias
  • Issuer DN: Distinguished name of the issuer of the certificate (who signed it)
  • Subject DN: Distringuished name of the subject (owner) of the certificate

A distinguished name consists at least of a Common name (prefixed by) "CN="

Other parts can be added (comma separated): 

Organizational Unit Name "OU="

Organization name: "O="

Country: "C="

It's possible to provide your own certificate serial number in the "Subject DN" field, by prefixing it with "SERIALNUMBER=".  Otherwise a serialnumber will be generated randomly.

Because the certificate is self-signed, the Issuer and Subject should be the same.

After it is created, the certificate can be exported in a PEM file to provide the public key to third parties.

Import Key Certificate

Because self-signed certificates are considered insecure, it's a recommended practice to create a certificate signing request (CSR) that is then signed by a certificate authority.  The returned certificate is verifiable by a chain of trust, and can be imported int o IDhub. 

There are two ways to import a certificate:

copy/paste

Provide an alias for the certificate.

Open the certificate in a text editor and copy the full text (example below) 

Make sure the Private Key part is included. 

import file

Provide an alias for the certificate.

Select the file and press 'import certificate' (Ensure the certificate file is of a P12 or PFX type).

-----BEGIN CERTIFICATE-----
MIIEIDCCA+CgAwIBAgIUHSle8379VhDdbksPu2S6q+CkCMQwCQYHKoZIzjgEAzAjMSEwHwYDVQQD
ExhUb2tlbiBTaWduaW5nIFB1YmxpYyBLZXkwHhcNMTMwNzAzMTkzNDIzWhcNMTMwNzEwMTkzNDIz
WjAtMSswKQYDVQQDHiIAYgBiADEANAAxADkAYQAyAGMAZgBjADEAZQAwADAAOAAAMIGfMA0GCSqG
SIb3DQEBAQUAA4GNADCBiQKBgQDbU9p4AwJy2RZxHYMXKalKv6K6cwrUB2RnFHZbelPgggfJyIZm
kL5pbB7u6tFYCBiNcMR6t8ItfVsi9iL33Uuluov7YZ3DPjRAVx4MZqXN3YR9bhzmOZpMgzKNxzoR
Kdhxy3qWYFAKdYZ9P1ln+9aUGJE3f1MuM7OPg1vWFUZ2VwIDAQABo4ICoDCCApwwDgYD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pqUq/orpz
CtQHZGcUdlt6U+CCB8nIhmaQvmlsHu7q0VgIGI1wxHq3wi19WyL2IvfdS6W6i/thncM+NEBXHgxm
pc3dhH1uHOY5mkyDMo3HOhEp2HHLepZgUAp1hn0/WWf71pQYkTd/Uy4zs4+DW9YVRnZXAgMBAAEC
gYAKMnja0ZEAk/VGJxAcOJSlZAmFz6l2OC3D2SCzmhliO8lu6ULOa/ZeYmeBxisbg6zYjqCj7/04
LjbZhkYT7hcBNH6lns7yGZzkdly4y0Ud7tjsM+E31Y0Wb7jh/t3pvETUtTUxwhGT5nheiE3iDDj1
RQATdYxAL57Hr5R1+jc5SQJBAPjrJtZN21JJSlrpZIGB2KKrK6thy/oMWGsw1B3TyZWZt1Q06Fe3
MwTrJ1K4YWRyhRy9ib4yqQKMq0mcMqPCMGMCQQDhkTGDSG+lbZnhjop9YwmmJpxiaXZELphc9Tr8
Kf0f6vcfe4mh0OIwpatlqaZiCh5yQwv4GTuwGsRv199f8LJ9AkEA2qeuAPh5XUoWL8/vQrgt9Y7J
GI4a4PaxQM+utNjSrkBOQ4EKS+sYvQxYCZj/rH3QolN4yQO1ZRDucgXskd9GIwJBANk3n+2j6Nfu
trwuLxFWOSmGjxx6IMjB8jm6ckX5DWgaNkZcCgsJA3kDYQ2ylKZexjkUdcdCTWdmL3rg8JwMR2UC
QQCXhPLLIjtcdHzUHjy9dqzPyATduAmD23K7UPBDytFRyNcvUE+0Yfw3Lnvd/wATuUiFqHkhjD4v
qkICcfVum6Yi
-----END PRIVATE KEY-----

Import Trust Certificate

There are two ways to import a certificate:

copy/paste

Provide an alias for the certificate.

Open the certificate in a text editor and copy the full text between "-----BEGIN CERTIFICATE-----" and "-----END CERTIFICATE-----"

import file

Provide an alias for the certificate.

Select the file (Ensure the certificate file is of a X509 format (generally has a .cer, .pem or .der extension).) and press 'import certificate'

Have more questions? Submit a request

Comments