1. Export Certificates and Private Keys from key.p12 and trust.p12
copy the effective key store and trust store to /var/tmp
cd /var/tmp
Export all signer certificates to /var/tmp/trust.pem
# openssl pkcs12 -in trust.p12 -out trust.pem -info -nokeys
Export Client Private Key to /var/tmp/key.pem
# openssl pkcs12 -in key.p12 -out key.pem -nocerts
Export Client Certificates to /var/tmp/personal.pem
# openssl pkcs12 -in key.p12 -out personal.pem -clcerts -nokeys
Form your curl command line as below:
curl --capath /var/tmp/curl --cert personal.pem:WebAS --key key.pem --pass WebAS --cacert trust.pem --data @<request xml> -H "Content-Type:text/xml;Charset='UTF-8'" <WebService URL>
i.e.
curl --capath /var/tmp/curl --cert personal.pem:WebAS --key key.pem --pass WebAS --cacert ca.pem --data @xam_in.xml -H "Content-Type:text/xml;Charset='UTF-8'" https://webservice.articy.net:5156/myWebService
Tuesday, June 19, 2012
Tuesday, June 5, 2012
Friday, June 1, 2012
Linux: Manage SCSI device w/o reboot system
To remove "dead" scsi-devices, type
echo 1> /sys/block/sdX/device/deletewhere sdX the dead device is. Be careful, don't remove devices you are currently using! To rescan for (new) scsi-devices type
echo "- - -" > /sys/class/scsi_host/hostX/scanwhere X is the host adapter id. (Should be 0) If the Volumesize was changed, then following command re-reads the volume size:
echo 1 > /sys/block/sdc/device/rescan(tested with custom linux-2.6.20-xen-r7)
Subscribe to:
Posts (Atom)