When I add a new end entity with the command below:
ejbca.sh ra addendentity test_cert test1 "CN=test.env, OU=My Org unit, O=My org., C=EE" "" TestCA "" 1 PEM ssl_server ssl_server
and after I batch generate this end entity
ejbca.sh ra setclearpwd test_cert test1
ejbca.sh batch test_cert -dir /opt/local/ejbca/ejbca-custom/certs
Using certificate profile: ssl_server, with id: 985265806
Using entity profile: ssl_server, with id: 503291280
Trying to add end entity:
Username: test_cert
Password: <password hidden="">
DN: CN=test.env, OU=My Org unit, O=My org., C=EE
CA Name: TestCA
SubjectAltName:
Email:
Type: 1
Token: PEM
Certificate profile: 985265806
End entity profile: 503291280
User 'test_cert' has been added.
Note: If batch processing should be possible, also use 'ra setclearpwd test_cert <pwd>'.
Generating keys in directory /opt/local/ejbca/ejbca-custom/certs.
Loading configuration from defaults.
Generating RSA keys of size 2048 for test_cert.
Created Keystore for 'test_cert'.
New user generated successfully - test_cert.
and check the subject field with OpenSSL:
openssl x509 -in test.env.pem -noout -subject
it shows the subject field /CN=test.env/OU=My Org unit/O=My org./C=EE
but I want that subject field to be CN=test.env, OU=My Org unit, O=My org., C=EE
Thanks
Alo
Last edit: aloeee 2014-05-13
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi
I have a little problem with the subject DN field
When I add a new end entity with the command below:
ejbca.sh ra addendentity test_cert test1 "CN=test.env, OU=My Org unit, O=My org., C=EE" "" TestCA "" 1 PEM ssl_server ssl_server
and after I batch generate this end entity
ejbca.sh ra setclearpwd test_cert test1
ejbca.sh batch test_cert -dir /opt/local/ejbca/ejbca-custom/certs
Using certificate profile: ssl_server, with id: 985265806
Using entity profile: ssl_server, with id: 503291280
Trying to add end entity:
Username: test_cert
Password: <password hidden="">
DN: CN=test.env, OU=My Org unit, O=My org., C=EE
CA Name: TestCA
SubjectAltName:
Email:
Type: 1
Token: PEM
Certificate profile: 985265806
End entity profile: 503291280
User 'test_cert' has been added.
Note: If batch processing should be possible, also use 'ra setclearpwd test_cert <pwd>'.
Generating keys in directory /opt/local/ejbca/ejbca-custom/certs.
Loading configuration from defaults.
Generating RSA keys of size 2048 for test_cert.
Created Keystore for 'test_cert'.
New user generated successfully - test_cert.
and check the subject field with OpenSSL:
openssl x509 -in test.env.pem -noout -subject
it shows the subject field /CN=test.env/OU=My Org unit/O=My org./C=EE
but I want that subject field to be
CN=test.env, OU=My Org unit, O=My org., C=EE
Thanks
Alo
Last edit: aloeee 2014-05-13
This is exactly the same. It is just a presentation issue (i.e. no standard how the string representation is).
Cheers,
Tomas
Save time and money with an Enterprise support subscription. Please see www.primekey.se for more information.
http://www.primekey.se/Products/EJBCA+PKI/
http://www.primekey.se/Services/Support/