# Cannot generate key for .gov.mv domains

**URL:** <https://pdfjs.community/t/cannot-generate-key-for-gov-mv-domains/1399>\
**Category:** Technical Support\
**Tags:** pdfjs-express\
**Created:** [February 21, 2022, 6:27am UTC](https://pdfjs.community/t/cannot-generate-key-for-gov-mv-domains/1399 "2022-02-21T06:27:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![samah](https://avatars.discourse-cdn.com/v4/letter/s/e0b2c6/32.png) [@samah](https://pdfjs.community/u/samah)\
**Post date:** [February 21, 2022, 6:27am UTC](https://pdfjs.community/t/cannot-generate-key-for-gov-mv-domains/1399/1 "2022-02-21T06:27:36Z")

</div>

**Which product are you using?**  
=PDF.js Express Viewer=

**PDF.js Express Version**  
UI version: 8.1.0  
Core version: 8.1.1

**Detailed description of issue**

It works fine on local server with .test domains and I am able to generate key for this type of urls without any issues.

I tried to generate a key for my production website but it says I don’t need to include subdomains but the root domain is actually [xxxx.gov.mv](https://xxxx.gov.mv) (it only accepts [gov.mv] as the domain but it does not load the PDF from viewer I use that and test it).

**Expected behaviour**  
Does not load pdf. Error message pops op in the console: Error: [PDFJS.express](http://PDFJS.express): A valid license key is required to use the view only build of PDF.js Express. Get your free license key at (account required)

**Does your issue happen with every document, or just one?**  
Every Document

**Link to document**

**Code snippet**

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex031/uploads/pdfjscommunity/original/1X/ffbcd25c7d423db8d5acd5db201c272f4db306dd.png) [@system](https://pdfjs.community/u/system)\
**Post date:** [February 21, 2022, 6:27am UTC](https://pdfjs.community/t/cannot-generate-key-for-gov-mv-domains/1399/3 "2022-02-21T06:27:41Z")

</div>

**Hello, I’m Ron, an automated tech support bot 🤖**

While you wait for one of our customer support representatives to get back to you, please check out some of these documentation pages:

Guides:
- [Adding your license key](https://pdfjs.express/documentation/get-started-viewer/add-license-key)
- [Integrating PDF.js Express Viewer into an existing Blazor project - Prerequisites](https://pdfjs.express/documentation/get-started-viewer/blazor/exist-project#prerequisites)
- [Manually download and integrate PDF.js Express Viewer](https://pdfjs.express/documentation/get-started-viewer/manually)

APIs:
- [Core - preloadPDFWorker(pdfBackendType, workerHandlers)](https://pdfjs.express/api/Core.html#.preloadPDFWorker__anchor)
- [PDF.js Express Utilities](https://pdfjs.express/api/utils/index.html#__anchor)
- [Core.Document - applyTemplateValues(autoFillMap)](https://pdfjs.express/api/Core.Document.html#applyTemplateValues__anchor)

Forums:
- [The active licence key is not working](https://pdfjs.community/t/the-active-licence-key-is-not-working/1099/1)
- [Pdfjs.express 8.2.1 error on a valid License Key](https://pdfjs.community/t/pdfjs-express-8-2-1-error-on-a-valid-license-key/1340/1)
- [Licensing problem in a intranet environmnet](https://pdfjs.community/t/licensing-problem-in-a-intranet-environmnet/1116/1)

---

<div class="post-metadata">

**Author:** ![Logan](https://yyz1.discourse-cdn.com/flex031/user_avatar/pdfjs.community/logan/32/13_2.png) [@Logan](https://pdfjs.community/u/Logan)\
**Post date:** [February 25, 2022, 4:14pm UTC](https://pdfjs.community/t/cannot-generate-key-for-gov-mv-domains/1399/4 "2022-02-25T16:14:35Z")

</div>

Hey there,

We pushed an update to fix this issue. You should be able to use your domain properly now.

Thanks!  
Logan
