Desafio Labsec (SGC)
FourthMilestone.h
Go to the documentation of this file.
1 #ifndef FOURTHMILESTONE_H
2 #define FOURTHMILESTONE_H
3 
4 #include <libcryptosec/Pkcs12Builder.h>
5 #include <libcryptosec/KeyPair.h>
6 
7 #include "utils/FileIo.h"
8 #include "utils/trace.h"
9 #include "utils/paths.h"
10 
43 
44 public:
45 
47 
48  virtual ~FourthMilestone();
49 
53  void createUserRepository(Certificate* userCert,
54  KeyPair& userKeyPair);
55 
59  void createRootCaRepository(Certificate* rootCaCert,
60  KeyPair& rootCaKeyPair);
61 
62 
66  const char* userAlias = "userP12";
67  const char* rootCaAlias = "rootP12";
68 
72  const char* userPass = "userpassword";
73  const char* rootCaPass = "rootcapassword";
74 };
75 
76 #endif /*FOURTHMILESTONE_H*/
const char * rootCaPass
Definition: FourthMilestone.h:73
virtual ~FourthMilestone()
Definition: FourthMilestone.cpp:14
Fourth Milestone - PKCS12 Key Repository
Definition: FourthMilestone.h:42
const char * userAlias
Definition: FourthMilestone.h:66
void createRootCaRepository(Certificate *rootCaCert, KeyPair &rootCaKeyPair)
Definition: FourthMilestone.cpp:24
const char * rootCaAlias
Definition: FourthMilestone.h:67
void createUserRepository(Certificate *userCert, KeyPair &userKeyPair)
Definition: FourthMilestone.cpp:16
FourthMilestone()
Definition: FourthMilestone.cpp:3
const char * userPass
Definition: FourthMilestone.h:72