ran this.
curl -X POST -H "Content-Type:application/xml" -u id:pwd http://somehost:someport/v1/o/someorg/environments/dev/virtualhosts-d "<VirtualHost name='defaultSSL'><HostAliases><HostAlias>defaultSSL</HostAlias></HostAliases><Interfaces/><Port>9443</Port><SSLInfo><Enabled>true</Enabled><ClientAuthEnabled>true</ClientAuthEnabled><KeyStore>someKeyStore</KeyStore><KeyAlias>someAlias</KeyAlias><Truststore>someTrusStore</Truststore><IgnoreValidationErrors>true></IgnoreValidationErrors></SSLInfo></VirtualHost>"
I am getting this back
{ "code" : "rest.SchemaValidationFailure", "message" : "Schema validation failed. Cause : unexpected element (uri:\"\", local:\"Truststore\"). Expected elements are <{}IgnoreValidationErrors> ,<{}Enabled>,<{}CommonName>,<{}Protocols>,<{}CRLStore>,<{}KeyAlias>,<{}TrustStore>,<{}KeyStore>,<{}Ciphers>,<{}ClientAuthEnabled>. Line number : 1. Co lumn number : 263. File name : NA.", "contexts" : [ ] }
what is wrong with my xml?
Solved! Go to Solution.
yes, Truststore need to be 'TrustStore'
yes, Truststore need to be 'TrustStore'
it works.
in
http://docs.apigee.com/api-services/content/creating-virtual-host
it has
Truststore
The name of the truststore on Edge that contains the certificate or certificate chain used for two-way SSL. Required if <ClientAuthEnabled> is true.
did using 'TrustStore' worked for you? this looks like a doc bug, will report it thanks
i am good. Thx
The doc here has been updated to use "TrustStore".
Stephen
User | Count |
---|---|
1 | |
1 | |
1 | |
1 | |
1 |