[swift-users] Where is the key getting created?
Travis Loyd
fun.tloyd at gmail.com
Wed Jun 24 04:17:03 UTC 2015
Thank you, this helped me to perform a lot more relevant tracing. However,
I'm still not seeing a "default" certification. Is there a default
certificate created one time, or perhaps each time Swift runs? I can see
in the code where it is loading profiles which were saved, but in the
registry none of them seem to have a certificate set... so I figure they
must be using a default. "certificateFile_" & "certificateString" (In
MainController.cpp & QtLoginWindow.cpp) seems to always be empty. I was
able to bring up CryptUIDlgSelectCertificateFromStore, but that seems more
related to choose a specifc cert to use rather than something being
generated first run & used automatically. (I'm in the swift-2.0 download)
On Tue, Jun 23, 2015 at 1:04 AM, Kevin Smith <kevin.smith at isode.com> wrote:
> On 22 Jun 2015, at 21:18, Travis Loyd <fun.tloyd at gmail.com> wrote:
> > Hello, I'm working to use the Swiften library for internal communication
> on a personal project.
>
> Hi,
>
> > Currently, I have been trying to understand where the TLS certificate is
> being created. So far I haven't been able to track that step down. I see
> calls to 'setCertificate' & 'addTLSCertificate', but where is the
> certificate being created? (Whether SChannel or OpenSSL)
>
> Excerpts from the QtSwift.cpp file:
>
> #ifdef HAVE_SCHANNEL
> #include "CAPICertificateSelector.h"
> #include <Swiften/TLS/CAPICertificate.h>
> #endif
> #include <Swiften/TLS/PKCS12Certificate.h>
>
> …
>
> CertificateWithKey::ref certificate;
> std::string certificateString =
> Q2PSTRING(certificateFile_);
> #if defined(HAVE_SCHANNEL)
> if (isCAPIURI(certificateString)) {
> certificate =
> boost::make_shared<CAPICertificate>(certificateString, timerFactory_);
> } else {
> certificate =
> boost::make_shared<PKCS12Certificate>(certificateString,
> createSafeByteArray(Q2PSTRING(password_->text())));
> }
> #else
> certificate =
> boost::make_shared<PKCS12Certificate>(certificateString,
> createSafeByteArray(Q2PSTRING(password_->text())));
> #endif
>
> /K
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </lists/pipermail/swift-users/attachments/20150623/7158c13d/attachment.html>
More information about the swift-users
mailing list