-
Notifications
You must be signed in to change notification settings - Fork 84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
signatureHeaders sees OpenSSL error when FIPS enabled #928
Comments
A more minimal options(repos = c(CRAN = "https://cran.rstudio.com/"))
install.packages("openssl")
key <- openssl::rsa_keygen(2048L)
rawsig <- openssl::signature_create(charToRaw("some data"), key = key)
signature <- openssl::base64_encode(rawsig) |
Another variation on key <- openssl::rsa_keygen(2048L)
priv_der <- openssl::write_der(key)
pub_der <- openssl::write_der(key$pubkey)
token <- list(
public_key = openssl::base64_encode(pub_der),
private_key = openssl::base64_encode(priv_der)
)
private_key <- openssl::read_key(
openssl::base64_decode(token$private_key),
der = TRUE
)
rawsig <- openssl::signature_create(charToRaw("some data"), key = key)
signature <- openssl::base64_encode(rawsig) |
This comment was marked as resolved.
This comment was marked as resolved.
The error can be avoided if we tell OpenSSL to allow SHA1 signatures: ENV OPENSSL_ENABLE_SHA1_SIGNATURES=yes
RUN R -f /content/debugging.R |
RHEL9 OpenSSL disables SHA1 signatures: https://gitlab.com/redhat/centos-stream/rpms/openssl/-/commit/78fb78d30755ae18fdaef28ef392f4e67c662ff6 (linked from VirusTotal/yara#1864 (comment)) |
This comment was marked as outdated.
This comment was marked as outdated.
Oh sorry, I meant #768 |
Oh! I totally didn't find that issue. Yes, it looks to be the same error. |
Support ticket reference: 91795 |
Support ticket reference: 96540 According to dotnet/runtime#65874 (comment) another workaround would be to set |
Is the problem being tracked on the connect side too? Obviously it will need a change before we can use a different client side strategy. |
Connect issue #14353 tracks shifting away from MD5; I did not find anything tracking this piece. @mmarchetti - are you tracking a change to API keys in all workflows? |
When using FIPS in a Rocky Linux 9 container, calling
openssl::signature_create
can err like:This can happen when people attempt to configure a Posit Account using the RStudio IDE or using
rsconnect::connectUser
.Folks encountering this problem can use
rsconnect::connectApiUser
as a workaround.Here is the
Dockerfile
:Here is
debugging.R
:With the
Dockerfile
anddebugging.R
files written into a directory, recreate the error with:docker build .
The text was updated successfully, but these errors were encountered: