We have created a proxy and it is using Target Servers to retrieve target endpoint. The proxy works fine for qa environment but fails for dev environment stating below error.
Error Deploying Revision 2 to dev
Target default has invalid keyalias reference BUS-APIGEE-QA. Context Revision:2;APIProxy:balances;Organization:orgname-nonprod;Environment:dev.
The Target Servers and TLS Key Stores are same for qa and dev environment. We have restarted the servers as well, still proxy is not able to pick up the keystore.
<HTTPTargetConnection> <Properties/> <SSLInfo> <Enabled>true</Enabled> <ClientAuthEnabled>true</ClientAuthEnabled> <KeyStore>esb-mtls-apigee-keystore</KeyStore> <KeyAlias>ESB-APIGEE-QA</KeyAlias> <TrustStore>esb-mtls-apigee-truststore</TrustStore> </SSLInfo> <LoadBalancer> <Server name="esb_rest"/> </LoadBalancer> <Path>/ws/AcctInformation1.0</Path> </HTTPTargetConnection>
Any help would be greatly appreciated. I have attached the snapshot of Apigee Edge configuration of dev and qa environments.
Thank you!
Solved! Go to Solution.
1. Run the following command on the Management Server:-
curl -v -u <username> "URL"
where URL is
/e/<Env>/keystores/<KeystoreName>
OName=Orgname
Env=Environment Name
KeystoreName = KeystoreNameWhichHasPrivateKeyPlusPublicKey
2. You will get the below output
{
"aliases" : [ {
"aliasName" : "KeystoreName",
"cert" : "KeystoreName-cert",
"key" : "KeystoreName-key"
} ],
"certs" : [ "KeystoreName-cert" ],
"keys" : [ "KeystoreName" ],
"name" : "KeystoreName"
}
3. The aliasName above is the alias name of your keystore.