Commit Graph
21 Commits
Author SHA1 Message Date
cberaud 41406833a8 add crypto::random_device 2015-05-15 19:57:04 +05:30
Guillaume Roguez 48c10af32f crypto: revert to DER fmt to pack certificate
Seems that Ring is not able to use PEM certificate.
Until we found a right way to use PEM, revert to DER format.
2015-05-01 11:13:35 -04:00
cberaud 06a32eedd1 Certificate: add option to not export the whole chain 2015-04-30 22:02:27 -04:00
Adrien Béraud 892af7a843 crypto: export the actual CAwith the chain 2015-04-30 21:52:38 -04:00
Adrien Béraud bdbc66e0b0 crypto: fix certificate chain export 2015-04-24 15:56:31 -04:00
Adrien Béraud 8f269ca405 crypto: import certificate chain from list of blobs 2015-04-20 17:57:58 -04:00
Adrien Béraud 9ee2a0763b crypto: serialize certificate chains 2015-04-20 15:50:38 -04:00
Adrien Béraud de92af95d3 return empty string in case of certificate export failure 2015-03-06 10:49:38 -05:00
Adrien Béraud 6e01255bc0 crypto: add Certificate::toString 2015-02-26 10:36:14 -05:00
Adrien Béraud 29f5d8c68e Use CryptoException for crypto errors 2015-02-16 14:29:32 -05:00
Adrien Béraud 72fe4c376f Fix GnuTLS early deinit 2015-02-16 14:28:26 -05:00
Adrien Béraud 2c8a9c25ed crypto: add Certificate::getId(), Certificate::getUID() 2015-02-12 14:50:50 -05:00
Adrien Béraud 129fded029 allow access to privatekey GnuTLS pointers 2015-01-23 17:10:18 -05:00
Adrien Béraud b97e323f78 fix some encryption issues 2014-12-16 15:10:22 -05:00
Adrien Béraud f5aaaf8b49 add missing headers 2014-12-07 16:26:12 -05:00
Adrien Béraud 6d6a2214db crypto: save private keys in PEM 2014-12-06 16:11:45 -05:00
Adrien Béraud fdaab32eb5 crypto: serialize in DER format by default 2014-12-05 11:36:17 -05:00
Adrien Béraud 09cfd86a09 crypto: allow to set generated RSA key size 2014-12-05 11:28:16 -05:00
Adrien Béraud 6458a9c589 crypto: allow to encrypt more than RSA block size
TODO: implement AES ecryption
2014-12-05 00:12:57 -05:00
Adrien Béraud 1cbfd1a893 crypto: handle more error cases 2014-11-25 22:20:55 -05:00
Adrien Béraud 151d31411a Add initial code 2014-11-20 01:42:44 -05:00