# Docker Content Trust authentication to https://notary.docker.io fails

**URL:** <https://forums.docker.com/t/docker-content-trust-authentication-to-https-notary-docker-io-fails/101259>\
**Category:** Docker Hub\
**Created:** [December 3, 2020, 9:54am UTC](https://forums.docker.com/t/docker-content-trust-authentication-to-https-notary-docker-io-fails/101259 "2020-12-03T09:54:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![karingreimel](https://avatars.discourse-cdn.com/v4/letter/k/aca169/32.png) [@karingreimel](https://forums.docker.com/u/karingreimel)\
**Post date:** [December 3, 2020, 9:54am UTC](https://forums.docker.com/t/docker-content-trust-authentication-to-https-notary-docker-io-fails/101259/1 "2020-12-03T09:54:25Z")

</div>

Hi,

we are trying to enable Docker content trust to verify signatures, we do not directly pull from docker but use a Nexus repository. So we pull the image from Nexus and want to verify the signature:

```
BASE_IMAGE=${NEXUS_HOST_DOWNSTREAM}/amazoncorretto:8

docker login --username karingreimel --password xxx
export DOCKER_CONTENT_TRUST=1
export DOCKER_CONTENT_TRUST_SERVER=https://notary.docker.io
docker pull ${BASE_IMAGE}

```

produces the following error message:  
Error: error contacting notary server: unauthorized: incorrect username or password

how do I do this correctly? My expectation was docker log in also authenticates to [notary.docker.io](http://notary.docker.io).  
BR Karin
