<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M74D8PB" height="0" width="0" style="display:none;visibility:hidden">
Loading
Skip to NavigationSkip to Main Content
Receiving "The private key length must be 2048 bits in length" Error when Creating a Custom Domain
Administration
Okta Classic Engine
Okta Identity Engine
Overview

When setting up a Custom Domain in Okta, after pasting the generated Private Key in the corresponding field, Admins may encounter the error message: 

 The private key length should be 2048 bits

 

Error Message

Applies To
  • Custom Domain
  • Private Key
Cause
A third-party tool/site may have been used to generate the Private Key, possibly using the incorrect format.
Solution

Generate the Private Key again from the DNS Provider using the PEM Key format.
 

Related References

Loading
Receiving "The private key length must be 2048 bits in length" Error when Creating a Custom Domain