9#include <userver/crypto/basic_types.hpp> 
   11USERVER_NAMESPACE_BEGIN
 
   20  using NativeType = X509;
 
   22  Certificate() = 
default;
 
   24  NativeType* GetNative() 
const noexcept { 
return cert_.get(); }
 
   25  explicit operator 
bool() 
const noexcept { 
return !!cert_; }
 
   35  explicit Certificate(std::shared_ptr<NativeType> cert)
 
   36      : cert_(std::move(cert)) {}
 
   38  std::shared_ptr<NativeType> cert_;