{
"code" : "messaging.config.beans.DescriptorFileNotFound",
"message" : "Descriptor file(META-INF/descriptor.properties) not found",
"contexts" : [ ]
}
I am facing this issue while iam uploading jar file in my keystore through curl command
curl -X POST -H "Content-Type: multipart/form-data" -F file="@myKeystore.jar" \ "https://api.enterprise.apigee.com/v1/o/{org_name}/e/{env_name}/keystores/{myKeystore}/keys?alias={ke...}" -u email:password.
It would be better to share more information on this:
- Deployment: Edge Cloud/OPDK
- Management Server logs
- Curl command used by masking credentials and other sensitive information
- Documentation followed
Create a JAR file containing your cert and private key:
Create a JAR file with your private key, certificate, and a manifest.
JAR file must contain:
In the directory containing your key pair and certificate, create a directory called /META-INF. Then, create a file called descriptor.properties in /META-INF with the following contents:
certFile={myCertificate}.pem
keyFile={myKey}.pem
Generate the JAR file containing your key pair and certificate:
# jar -cf myKeystore.jar certs/rootCA/rootCA.pem certs/signedCA/dst.cert.pem
Add descriptor.properties to your JAR file:
# jar -uf myKeystore.jar META-INF/descriptor.properties
after this i created keystore using curl ommand.
lyk
curl -H "Content-Type: text/xml" \
https://api.enterprise.apigee.com/v1/o/{org_name}/environments/{env_name}/keystores \
-X POST -d '<KeyStore name="myKeystore"/>' -u email:password
this command is worked...
I am facing the issue while trying to upload my jar file.
curl -X POST -H "Content-Type: multipart/form-data" -F file="@myKeystore.jar" \ "https://api.enterprise.apigee.com/v1/o/{org_name}/e/{env_name}/keystores/{myKeystore}/keys?alias={key_alias}&password={key_pass}" -u email:password
after running this command i faced this issue
{
"code" : "messaging.config.beans.DescriptorFileNotFound",
"message" : "Descriptor file(META-INF/descriptor.properties) not found",
"contexts" : [ ]
}
@kumari majji, As per the process you need to create "Manifest - META-INF/descriptor.properties" file under the same directory where your certificate & key pair exist. Looks like you had created it under different directory. Pls double check?
User | Count |
---|---|
1 | |
1 | |
1 | |
1 | |
1 |