<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Fri, Jun 8, 2018 at 5:02 PM, Ben McGinnes <span dir="ltr"><<a href="mailto:ben@adversary.org" target="_blank">ben@adversary.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class="gmail-">On Fri, Jun 08, 2018 at 03:05:23PM +0530, Divesh Uttamchandani wrote:<br>
> Hi,<br>
> <br>
> I am developing an application using gpgme python bindings.<br>
> I want to achieve the following gpg command functionality using gpgme.<br>
> <br>
> gpg --auto-key-locate=local,cert,<wbr>keyserver,pka \<br>
> --keyserver "$KEYSERVER" $recipients \<br>
<br>
</span>Direct access to keyserver (dirmngr) commands or functions is not<br>
currently included in GPGME.  Since the SKS protocol is essentially<br>
sitting on HTTP and HTTPS, however, it's simple enough to replicate<br>
those features directly using existing Python methods.<br>
<br>
I *highly* recommend using the requests module for that part.<br></blockquote><div><br></div><div>As a workaround, or temporary solution, you can also try to use the commands:</div><div>    gpg --keyserver="$keyserver" --search-keys "$recipient"<br></div><div><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">    gpg --keyserver="$keyserver" --recv-keys <key_id> <key_id>...</span><br></div><div>for fetching the recipients that are not available locally.</div><div>Later you can replace this with Python code.</div><div><br></div><div>Regards,</div><div>Dashamir</div></div></div></div>