Closed s0ul93 closed 1 year ago
Hello s0ul93!
For the creation of the device certificates please use the following command, because the certificates you are creating are not RSA 2048 bits (they are EC 256 bits and this format is not compatible with the rest of components).
python3 pki.py cert create --subCA ReferenceTestbedSubCA --common-name dev1 --algo rsa --bits 2048 --hash sha256 --country-name ES --organization-name SQS --unit-name TestLab --server --client
Also, inside DAPS/keys
folder it is only necessary to have dev1.cert
certificate.
For the section of your issue Importing the certificate in the config folder of the (dataspace) connector to be tested
please follow the InstallationGuide section here.
If you have further issues, please detail them here. I will make soon an update at the CA documentation regarding the command to properly create the device certificates.
Hello team,
I have been trying to add new device certificates (referring to the testbed1, testbed2, ... testbed10 on the certificate authority) for connectors without success and would like to know how I can achieve this. I was anticipating having potentially more then 6 clients simultaneously on the testbed (I understood that testbed1 through 4 are reserved for other components of the testbed, which means 6 remains for new components).
Environment
Steps to reproduce the error
This is how I attempted to do it
Creating new crt key pair on the certificate authority:
Inside IDS-testbed/CertificateAuthority
$ python3 pki.py cert create --subCA "ReferenceTestbedSubCA" --common-name dev1 --client --server
Registering the new certificate on the DAPS
Inside IDS-testbed/DAPS
$ cp ../CertificateAuthority/data/cert/dev1.* keys $ openssl pkcs12 -export -out keys/dev1.p12 -inkey keys/dev1.key -in keys/dev1.crt -passout pass:password $ openssl pkcs12 -in keys/dev1.p12 -out keys/dev1.cert -nokeys -nodes -passin pass:password $ ./register_connector.sh dev1
dev1.p12
from previous step into connector'ssrc/main/resources/conf
$ docker-compose down -v && docker-compose up --build
However it failed with the following :
Can you let me know how to solve the problem? Do I have to tear down the whole setup and configure everything from zero (following the manual setups described in the installaion guide in order to achieve my objective?