Commit f45c00a6 authored by apapkovskiy's avatar apapkovskiy
Browse files

Fix some path issues

parent 57b14b3f
......@@ -36,7 +36,7 @@ const char * gszA71COMPortDefault = NULL;
const char * gszDatastoreFilename = "datastore.bin";
const uint32_t gKeystoreId = 0x0000BEEFU;
const char* output_directory = "output";
const char* output_directory = "certs";
#define SERVICE_CONFIGURATION_PATTERN "config_%s.txt"
#define SERVICE_CERTIFICATE_PATTERN "cert_%s.pem"
#define SERVICE_KEYREF_PATTERN "keyref_%s.pem"
......@@ -464,8 +464,18 @@ int main()
char config_filename[1024];
char certificate_filename[1024];
char keyref_filename[1024];
char *snap_common_path;
sprintf(config_filename, "%s%c" SERVICE_CONFIGURATION_PATTERN, output_directory, path_separator, service_identifier_str);
/*snap_common_path = getenv("SNAP_COMMON");
if(snap_common_path == NULL)
{
snap_common_path="";
IOT_AGENT_ERROR("Unable to get $SNAP_COMMON");
}*/
//sprintf(config_filename, "%s%s%c" SERVICE_CONFIGURATION_PATTERN, snap_common_path, output_directory, path_separator, service_identifier_str);
sprintf(config_filename, "%s%c" SERVICE_CONFIGURATION_PATTERN, output_directory, path_separator, "SampleConfig.json");
sprintf(certificate_filename, "%s%c" SERVICE_CERTIFICATE_PATTERN, output_directory, path_separator, service_identifier_str);
sprintf(keyref_filename, "%s%c" SERVICE_KEYREF_PATTERN, output_directory, path_separator, service_identifier_str);
......
......@@ -4,7 +4,7 @@ set -x
PATH_TO_BIN=jrcp/lib
cd ${SNAP_COMMON}/certs
cd ${SNAP_COMMON}
if [ -f ${SNAP_COMMON}/initialize.jcsh ]; then
echo "File initialize.jcsh was found. Try apdu_player ..."
......
-----BEGIN CERTIFICATE-----
MIIDQTCCAimgAwIBAgITBmyfz5m/jAo54vB4ikPmljZbyjANBgkqhkiG9w0BAQsF
ADA5MQswCQYDVQQGEwJVUzEPMA0GA1UEChMGQW1hem9uMRkwFwYDVQQDExBBbWF6
b24gUm9vdCBDQSAxMB4XDTE1MDUyNjAwMDAwMFoXDTM4MDExNzAwMDAwMFowOTEL
MAkGA1UEBhMCVVMxDzANBgNVBAoTBkFtYXpvbjEZMBcGA1UEAxMQQW1hem9uIFJv
b3QgQ0EgMTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALJ4gHHKeNXj
ca9HgFB0fW7Y14h29Jlo91ghYPl0hAEvrAIthtOgQ3pOsqTQNroBvo3bSMgHFzZM
9O6II8c+6zf1tRn4SWiw3te5djgdYZ6k/oI2peVKVuRF4fn9tBb6dNqcmzU5L/qw
IFAGbHrQgLKm+a/sRxmPUDgH3KKHOVj4utWp+UhnMJbulHheb4mjUcAwhmahRWa6
VOujw5H5SNz/0egwLX0tdHA114gk957EWW67c4cX8jJGKLhD+rcdqsq08p8kDi1L
93FcXmn/6pUCyziKrlA4b9v7LWIbxcceVOF34GfID5yHI9Y/QCB/IIDEgEw+OyQm
jgSubJrIqg0CAwEAAaNCMEAwDwYDVR0TAQH/BAUwAwEB/zAOBgNVHQ8BAf8EBAMC
AYYwHQYDVR0OBBYEFIQYzIU07LwMlJQuCFmcx7IQTgoIMA0GCSqGSIb3DQEBCwUA
A4IBAQCY8jdaQZChGsV2USggNiMOruYou6r4lK5IpDB/G/wkjUu0yKGX9rbxenDI
U5PMCCjjmCXPI6T53iHTfIUJrU6adTrCC2qJeHZERxhlbI1Bjjt/msv0tadQ1wUs
N+gDS63pYaACbvXy8MWy7Vu33PqUXHeeE6V/Uq2V8viTO96LXFvKWlJbYK8U90vv
o/ufQJVtMVT8QtPHRh8jrdkPSHCa2XV4cdFyQzR1bldZwgJcJmApzyMZFo6IQ6XU
5MsI+yMRQ+hDKXJioaldXgjUkK642M4UwtBV8ob2xJNDd2ZhwLnoQdeXeGADbkpy
rqXRfboQnoZsG4q5WTP468SQvvG5
-----END CERTIFICATE-----
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment